19declare(strict_types=1);
32 protected array $actions,
33 protected ?\Closure $active_action_closure,
34 protected ?\Closure $row_transformer
40 array $visible_column_ids,
44 ?array $additional_parameters
46 foreach ($this->retrieval->getData(
51 $additional_parameters ?? []
53 if ($this->row_transformer) {
54 $table_data = ($this->row_transformer)(
$data);
58 $row = $row_builder->buildDataRow((
string)
$data[
"id"], $table_data);
59 if ($this->active_action_closure) {
60 foreach ($this->actions as $action) {
61 if (!($this->active_action_closure)($action,
$data)) {
62 $row = $row->withDisabledAction($action);
72 ?array $additional_parameters
74 return $this->retrieval->count(
76 $additional_parameters ?? []
Both the subject and the direction need to be specified when expressing an order.
A simple class to express a naive range of whole positive numbers.
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...
getRows(Table\DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, ?array $filter_data, ?array $additional_parameters)
__construct(protected RetrievalInterface $retrieval, protected array $actions, protected ?\Closure $active_action_closure, protected ?\Closure $row_transformer)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...