ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
DataRetrieval.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\UI\Component\Table;
22 
25 use Generator;
26 
27 interface DataRetrieval
28 {
36  public function getRows(
37  DataRowBuilder $row_builder,
38  array $visible_column_ids,
39  Range $range,
40  Order $order,
41  ?array $filter_data, // $DIC->uiService()->filter()->getData();
42  ?array $additional_parameters
43  ): Generator;
44 
57  public function getTotalRowCount(
58  ?array $filter_data, // $DIC->uiService()->filter()->getData();
59  ?array $additional_parameters
60  ): ?int;
61 }
Both the subject and the direction need to be specified when expressing an order. ...
Definition: Order.php:28
getRows(DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, ?array $filter_data, ?array $additional_parameters)
This is called by the table to retrieve rows; map data-records to rows using the $row_builder e...
getTotalRowCount(?array $filter_data, ?array $additional_parameters)
Mainly for the purpose of pagination-support, it is important to know about the total number of recor...
A simple class to express a naive range of whole positive numbers.
Definition: Range.php:28