Lines Matching refs:rows
150 $rows = $this->buildRows($helper);
151 if ($rows === []) {
159 foreach ($rows as $r) {
172 $shown = $this->applyFilters($rows, $filters);
307 $rows = [];
317 $rows[] = [
325 return $rows;
355 * @param array $rows
359 protected function applyFilters(array $rows, array $filters) argument
362 return $rows;
365 return array_values(array_filter($rows, function ($row) use ($term) {
392 * @param array $rows
397 protected function sortRows(array $rows, $sort, $dir) argument
399 usort($rows, static function ($a, $b) use ($sort) {
411 $rows = array_reverse($rows);
413 return $rows;
419 * @param array $rows filtered + sorted rows
424 protected function paginate(array $rows, $perPage) argument
427 $total = count($rows);
430 return [$rows, 1, 1, $total > 0 ? 1 : 0, $total];
443 $slice = array_slice($rows, $offset, $perPage);