projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix PlErrorReport::fromCSV by adding a missing static
[platal.git]
/
classes
/
plset.php
diff --git
a/classes/plset.php
b/classes/plset.php
index
17ca249
..
4d28f86
100644
(file)
--- a/
classes/plset.php
+++ b/
classes/plset.php
@@
-31,6
+31,7
@@
abstract class PlSet
protected $limit = null;
protected $count = null;
protected $limit = null;
protected $count = null;
+ protected $total_count = null;
protected $groups = false;
// Handle the "restrict to values of the current order"
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;
}
$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)
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_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;
$page->assign('plset_has_groups', $this->groups != null);
$page->assign('plset_groups', $this->groups);
return true;