ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
TableRows.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Contact;
22
28use Generator;
29use Closure;
30
31class TableRows implements DataRetrieval
32{
36 public function __construct(private readonly Closure $rows)
37 {
38 }
39
40 public function getRows(
41 DataRowBuilder $row_builder,
42 array $visible_column_ids,
44 Order $order,
45 mixed $additional_viewcontrol_data,
46 mixed $filter_data,
47 mixed $additional_parameters
48 ): Generator {
49 return ($this->rows)(...func_get_args());
50 }
51
52 public function getTotalRowCount(
53 mixed $additional_viewcontrol_data,
54 mixed $filter_data,
55 mixed $additional_parameters
56 ): ?int {
57 return current(Pagination::DEFAULT_LIMITS) - 1; // Disable pagination controls.
58 }
59}
getRows(DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, mixed $additional_viewcontrol_data, mixed $filter_data, mixed $additional_parameters)
This is called by the table to retrieve rows; map data-records to rows using the $row_builder e....
Definition: TableRows.php:40
__construct(private readonly Closure $rows)
Definition: TableRows.php:36
getTotalRowCount(mixed $additional_viewcontrol_data, mixed $filter_data, mixed $additional_parameters)
Mainly for the purpose of pagination-support, it is important to know about the total number of recor...
Definition: TableRows.php:52
Both the subject and the direction need to be specified when expressing an order.
Definition: Order.php:29
A simple class to express a naive range of whole positive numbers.
Definition: Range.php:29
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...