19 declare(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 ?? []
getTotalRowCount(?array $filter_data, ?array $additional_parameters)
__construct(protected RetrievalInterface $retrieval, protected array $actions, protected ?\Closure $active_action_closure, protected ?\Closure $row_transformer)
Both the subject and the direction need to be specified when expressing an order. ...
getRows(Table\DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, ?array $filter_data, ?array $additional_parameters)
A simple class to express a naive range of whole positive numbers.