ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Repository\Table\OrderingRetrieval Class Reference
+ Collaboration diagram for ILIAS\Repository\Table\OrderingRetrieval:

Public Member Functions

 __construct (protected RetrievalInterface $retrieval, protected array $actions, protected ?\Closure $active_action_closure, protected ?\Closure $row_transformer)
 
 getRows (OrderingRowBuilder $row_builder, array $visible_column_ids)
 

Detailed Description

Definition at line 27 of file OrderingRetrieval.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Repository\Table\OrderingRetrieval::__construct ( protected RetrievalInterface  $retrieval,
protected array  $actions,
protected ?\Closure  $active_action_closure,
protected ?\Closure  $row_transformer 
)

Definition at line 29 of file OrderingRetrieval.php.

34 {
35 }

Member Function Documentation

◆ getRows()

ILIAS\Repository\Table\OrderingRetrieval::getRows ( OrderingRowBuilder  $row_builder,
array  $visible_column_ids 
)

Definition at line 37 of file OrderingRetrieval.php.

40 : \Generator {
41 foreach ($this->retrieval->getData(
42 $visible_column_ids
43 ) as $data) {
44 if ($this->row_transformer) {
45 $table_data = ($this->row_transformer)($data);
46 } else {
47 $table_data = $data;
48 }
49 $row = $row_builder->buildOrderingRow((string) $data["id"], $table_data);
50 if ($this->active_action_closure) {
51 foreach ($this->actions as $action) {
52 if (!($this->active_action_closure)($action, $data)) {
53 $row = $row->withDisabledAction($action);
54 }
55 }
56 }
57 yield $row;
58 }
59 }

References $data, and ILIAS\UI\Component\Table\OrderingRowBuilder\buildOrderingRow().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: