From: Raphaël Barrois Date: Mon, 22 Mar 2010 15:06:40 +0000 (+0100) Subject: Use batch fetchers for search X-Git-Tag: xorg/1.0.0~332^2~9 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=8467def7b77245ec935d6ce64cf6e031595ccaa7;p=platal.git Use batch fetchers for search Signed-off-by: Raphaël Barrois --- diff --git a/core b/core index c291ca5..501a6db 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit c291ca5486bce705cd3dfd81065cbd2d92b96da5 +Subproject commit 501a6db205b3355bd9e15de6eac20ca033835201 diff --git a/include/userset.inc.php b/include/userset.inc.php index 73ba6c8..a403b8a 100644 --- a/include/userset.inc.php +++ b/include/userset.inc.php @@ -115,17 +115,9 @@ class SearchSet extends ProfileSet $this->conds->addChild($ufb->getUFC()); } - public function &get(PlLimit $limit = null, $orders = array()) + protected function &getFilterResults(PlFilter &$pf, PlLimit $limit) { - $orders = array_merge($orders, $this->orders); - - $uf = $this->buildFilter($this->conds, $orders); - if (is_null($limit)) { - $limit = new PlLimit(20, 0); - } - $it = $uf->getProfiles($limit); - $this->count = $uf->getTotalCount(); - return $it; + return $pf->getProfiles($limit, Profile::FETCH_MINIFICHES); } }