19 declare(strict_types=1);
45 protected bool $table_has_singleactions,
46 protected bool $table_has_multiactions,
47 protected array $columns,
48 protected array $actions,
50 protected array $record
65 $clone->disabled_actions[$action_id] =
true;
71 return $this->columns;
76 return $this->table_has_singleactions;
80 return $this->table_has_multiactions;
87 function (
string $id):
bool {
88 return !array_key_exists($id, $this->disabled_actions);
96 if (!array_key_exists($col_id, $this->record)) {
99 return $this->columns[$col_id]->format($this->record[$col_id]);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getCellContent(string $col_id)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
withDisabledAction(string $action_id, bool $disable=true)
Refer to an Action by its id and disable it for this row/record only.
__construct(protected bool $table_has_singleactions, protected bool $table_has_multiactions, protected array $columns, protected array $actions, protected string $id, protected array $record)
The records's key is the column-id of the table.