From: Florent Bruneau Date: Sat, 6 Nov 2010 07:53:43 +0000 (+0100) Subject: Add an helper to build the export of the PFOs. X-Git-Tag: core/1.1.2~23 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=778e3dbb6afab4a504c04316995bd8d1ed3090b6;p=platal.git Add an helper to build the export of the PFOs. Signed-off-by: Florent Bruneau --- 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");