19 declare(strict_types=1);
36 protected string $title,
37 protected array $objects,
38 protected string $selected_type,
45 protected function getId(): string
67 $f = $this->gui->ui()->factory();
70 $icon =
$f->symbol()->icon()->standard(
77 'id' => $data_row[
'ref_id'],
79 'title' =>
$refinery->encode()->htmlSpecialCharsAsEntities()->transform(
82 'path' => $data_row[
'path'],
83 'type' => $data_row[
'type'],
84 'readable' => $data_row[
'readable']
88 protected function activeAction(
string $action, array $data_row): bool
90 if (!$data_row[
'readable']) {
94 if ($action ===
'export') {
95 $obj_definition = $this->domain->objectDefinition();
96 $type = $data_row[
'type'];
97 if (in_array($type, [
'crsr',
'catr',
'grpr']) || !$obj_definition->allowExport($type)) {
102 if ($action ===
'show') {
106 if (!method_exists($this->parent_gui,
'isReadOnly')) {
110 return !$this->parent_gui->isReadOnly();
115 $lng = $this->domain->lng();
119 ->textColumn(
'title',
$lng->txt(
'title'),
true)
120 ->textColumn(
'path',
$lng->txt(
'path'));
134 $lng->txt(
'change_owner')
Refinery Factory $refinery
build(TableAdapterGUI $table)
transformRow(array $data_row)
__construct(protected InternalDomainService $domain, protected InternalGUIService $gui, protected int $user_id, protected string $title, protected array $objects, protected string $selected_type, object $parent_gui, string $parent_cmd)
iconColumn(string $key, string $title, bool $sortable=false)
__construct(Container $dic, ilPlugin $plugin)
singleAction(string $action, string $title, bool $async=false)
activeAction(string $action, array $data_row)