X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fuserset.inc.php;h=f3286dde74dcd8651a4950e1b40872b51ff6358b;hb=43a424857c4a6bbae6d7d41efe337f2c16b86d64;hp=9d8d7dfad649def7247918c6b0d1773a04aa6a0f;hpb=afe6e01ca6b3e2ba559a26bb5375aa03737c5e12;p=platal.git diff --git a/include/userset.inc.php b/include/userset.inc.php index 9d8d7df..f3286dd 100644 --- a/include/userset.inc.php +++ b/include/userset.inc.php @@ -327,8 +327,13 @@ class ListMemberView extends MixedView class TrombiView extends MixedView { + private $full_count; + public function __construct(PlSet $set, array $params) { + $set->getIds(); + $this->full_count = $set->count(); + $this->entriesPerPage = 24; $this->defaultkey = 'name'; if (@$params['with_score']) { @@ -359,6 +364,7 @@ class TrombiView extends MixedView global $globals; $page->assign('mainsiteurl', 'https://' . $globals->core->secure_domain . '/'); } + $page->assign('full_count', $this->full_count); return parent::apply($page); } }