19declare(strict_types=1);
32 protected array $actions,
33 protected ?\Closure $active_action_closure,
34 protected ?\Closure $row_transformer
40 array $visible_column_ids,
43 mixed $additional_viewcontrol_data,
45 mixed $additional_parameters
47 foreach ($this->retrieval->getData(
52 $additional_parameters ?? []
54 if ($this->row_transformer) {
55 $table_data = ($this->row_transformer)(
$data);
59 $row = $row_builder->buildDataRow((
string)
$data[
"id"], $table_data);
60 if ($this->active_action_closure) {
61 foreach ($this->actions as $action) {
62 if (!($this->active_action_closure)($action,
$data)) {
63 $row = $row->withDisabledAction($action);
72 mixed $additional_viewcontrol_data,
74 mixed $additional_parameters
76 return $this->retrieval->count(
78 $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(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...
getRows(Table\DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, mixed $additional_viewcontrol_data, mixed $filter_data, mixed $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...