X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fplfilter.php;h=8355308a82ec04aad9995a751c8048b492a0b5a7;hb=e9cf1bf903107b856df864f6d324076720e791bd;hp=5dd77e6e936f159e52db2bace9c66a85f8a9ed04;hpb=88541046480799a8d92eba186f22e22c0c64efb0;p=platal.git diff --git a/classes/plfilter.php b/classes/plfilter.php index 5dd77e6..8355308 100644 --- a/classes/plfilter.php +++ b/classes/plfilter.php @@ -1,6 +1,6 @@ _tokens; } + + /** This function is called when trying to restrict to one of the + * specific values of the group token. + * + * @return A PlFilterCondition. + */ + public function getCondition($group_value) + { + return null; + } } // }}} @@ -185,7 +195,7 @@ abstract class PFC_OneChild implements PlFilterCondition public function export() { - return array('child' => $child->export()); + return array('child' => $this->child->export()); } } // }}} @@ -384,6 +394,14 @@ abstract class PlFilter implements PlExportable */ public abstract function get($limit = null); + /** Get ids, selecting only those within a limit + * @param $limit The portion of the matching objects to select + */ + public function getIds($limit = null) + { + return $this->get($limit); + } + /** PRIVATE FUNCTIONS */