X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fplfilter.php;h=e67405dae0523bd34de51400f5c4343a6cc9674e;hb=c16ab9ce3537fad8a05ecba1cdb25268440aec29;hp=5dd77e6e936f159e52db2bace9c66a85f8a9ed04;hpb=23749c61b65d441b631e791005277ec1c69f4c83;p=platal.git diff --git a/classes/plfilter.php b/classes/plfilter.php index 5dd77e6..e67405d 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 */ @@ -412,5 +430,5 @@ abstract class PlFilter implements PlExportable } // }}} -// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8: ?>