Lines Matching refs:sort
211 * @param string $sort one of the keys of $this->sortFields
215 public function sortRows(array $rows, $sort, $dir) argument
217 $field = $this->sortFields[$sort] ?? 'display_name';
315 $sort = $INPUT->get->str('sort', 'name');
316 if (!isset($this->sortFields[$sort])) {
317 $sort = 'name';
319 if (($sort === 'mail' && !$showMail) || ($sort === 'grps' && !$showGrps)) {
320 $sort = 'name';
341 $rows = $this->sortRows($rows, $sort, $dir);
364 $html .= '<input type="hidden" name="sort" value="' . hsc($sort) . '" />';
372 $html .= $this->sortHeader($labels[$c], $c, $sort, $dir, $setFilter, $qfilters);
375 … $html .= $this->renderFilterRow($cols, $filterMap, $qfilters, $toggles, $setFilter, $sort, $dir);
395 $html .= $this->renderPager($page, $totalPages, $sort, $dir, $setFilter, $qfilters);
577 * @param string $sort
583 protected function standingParams($sort, $dir, $setFilter, array $qfilters) argument
585 $params = ['sort' => $sort, 'dir' => $dir];
615 * @param string $sort currently active sort key
621 protected function sortHeader($label, $col, $sort, $dir, $setFilter, array $qfilters) argument
624 $newDir = ($sort === $col && $dir === 'asc') ? 'desc' : 'asc';
626 if ($sort === $col) {
631 $this->standingParams($sort, $dir, $setFilter, $qfilters),
647 * @param string $sort
651 …rFilterRow(array $cols, array $filterMap, array $qfilters, array $toggles, $setFilter, $sort, $dir) argument
669 $clear = $this->tableURL(['sort' => $sort, 'dir' => $dir]);
691 * @param string $sort
697 protected function renderPager($page, $totalPages, $sort, $dir, $setFilter, array $qfilters) argument
706 … $html .= $this->pagerLink($page - 1, $sort, $dir, $setFilter, $qfilters, '‹', 'pager_prev');
717 $html .= $this->pagerLink($p, $sort, $dir, $setFilter, $qfilters, (string) $p, '');
722 … $html .= $this->pagerLink($page + 1, $sort, $dir, $setFilter, $qfilters, '›', 'pager_next');
734 * @param string $sort
742 protected function pagerLink($p, $sort, $dir, $setFilter, array $qfilters, $text, $titleKey) argument
745 $this->standingParams($sort, $dir, $setFilter, $qfilters),