From: Florent Bruneau Date: Sun, 14 Feb 2010 10:33:01 +0000 (+0100) Subject: Makes the $limit argument optional. X-Git-Tag: core/1.1.0~84 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e1746810b6aeaba3332ff99acdbf7ff3c2e9ada6;p=platal.git Makes the $limit argument optional. Signed-off-by: Florent Bruneau --- diff --git a/classes/plfilter.php b/classes/plfilter.php index 8c65ae7..b43880d 100644 --- a/classes/plfilter.php +++ b/classes/plfilter.php @@ -334,7 +334,7 @@ abstract class PlFilter * @param $objects The objects to filter * @param $limit The portion of the matching objects to show */ - public abstract function filter(array $objects, PlLimit &$limit); + public abstract function filter(array $objects, $limit = null); public abstract function setCondition(PlFilterCondition &$cond); @@ -345,7 +345,7 @@ abstract class PlFilter /** Get objects, selecting only those within a limit * @param $limit The portion of the matching objects to select */ - public abstract function get(PlLimit &$limit); + public abstract function get($limit = null); /** PRIVATE FUNCTIONS */