From 778e3dbb6afab4a504c04316995bd8d1ed3090b6 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sat, 6 Nov 2010 08:53:43 +0100 Subject: [PATCH] Add an helper to build the export of the PFOs. Signed-off-by: Florent Bruneau --- classes/plfilter.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/classes/plfilter.php b/classes/plfilter.php index 30c95f3..f36a803 100644 --- a/classes/plfilter.php +++ b/classes/plfilter.php @@ -62,6 +62,15 @@ abstract class PlFilterOrder implements PlExportable $this->_tokens = null; } + protected function buildExport($type) + { + $export = array('type' => $type); + if ($this->desc) { + $export['order'] = 'desc'; + } + return $export; + } + public function export() { throw new Exception("This instance is not exportable"); -- 2.1.4