X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fplset.php;h=4d28f865c3e33a7407a431673d917c2513b55967;hb=3287ae38abbde7eb19260c69190096cef7e66064;hp=17ca249a69194b5b9e25aa723d2a0832af619393;hpb=852e6400e7b7dbc0c0d4c8b4e72ca009954056cb;p=platal.git diff --git a/classes/plset.php b/classes/plset.php index 17ca249..4d28f86 100644 --- a/classes/plset.php +++ b/classes/plset.php @@ -31,6 +31,7 @@ abstract class PlSet protected $limit = null; protected $count = null; + protected $total_count = null; protected $groups = false; // Handle the "restrict to values of the current order" @@ -158,6 +159,7 @@ abstract class PlSet } $pf_res = $this->buildFilterHelper($orders); $pf_groups = $pf_res; + $this->total_count = $pf_res->getTotalCount(); if ($this->restrict_to != null && count($this->orders) && $this->orders[0] instanceof PlFilterGroupableOrder) @@ -275,6 +277,7 @@ abstract class PlSet } $page->assign('plset_content', $view->apply($page)); $page->assign('plset_count', $this->count); + $page->assign('plset_total_count', $this->total_count); $page->assign('plset_has_groups', $this->groups != null); $page->assign('plset_groups', $this->groups); return true;