ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
RowBuilder.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
27abstract class RowBuilder
28{
29 protected bool $table_has_multiactions = false;
30
34 protected array $row_actions = [];
35
39 protected array $columns = [];
40
41 //abstract function buildRow(string $id, array $record);
42
43 public function withMultiActionsPresent(bool $flag): self
44 {
45 $clone = clone $this;
46 $clone->table_has_multiactions = $flag;
47 return $clone;
48 }
49
53 public function withSingleActions(array $row_actions): self
54 {
55 $clone = clone $this;
56 $clone->row_actions = $row_actions;
57 return $clone;
58 }
62 public function withVisibleColumns(array $columns): self
63 {
64 $clone = clone $this;
65 $clone->columns = $columns;
66 return $clone;
67 }
68}
A Column describes the form of presentation for a certain aspect of data, i.e.
Definition: Column.php:28