53 $this->ui_factory = $DIC->ui()->factory();
54 $this->request = $DIC->http()->request();
59 $ok = $this->ok($this->ui_factory);
60 $nok = $this->nok($this->ui_factory);
63 $title = $this->translations_repository->get($group)->getDefault()?->getTranslation() ?? $group->getTitle();
65 $this->
hash($group->getId()),
67 self::COLUMN_TITLE => $this->ui_factory->link()->standard(
70 ->withParameter($this->id_token, $this->
hash($group->getId()))
72 ->withParameter(
'cmd',
'editEntries')
74 self::COLUMN_ACTIVE => $group->isActive() ? $ok : $nok,
75 self::CLUMNS_ITEMS => $group->getItems(),
79 if ($group->isCore()) {
80 $row = $row->withDisabledAction(
'delete')
81 ->withDisabledAction(
'translate')
82 ->withDisabledAction(
'move');
95 $async_translation =
false;
97 return $this->ui_factory
102 $this->translator->translate(
'groups'),
104 self::COLUMN_TITLE => $this->ui_factory->table()->column()->link(
105 $this->translator->translate(
'title',
'group')
107 self::COLUMN_ACTIVE => $this->ui_factory->table()->column()->statusIcon(
108 $this->translator->translate(
'active',
'group')
110 self::CLUMNS_ITEMS => $this->ui_factory->table()->column()->text(
111 $this->translator->translate(
'items',
'group')
115 ->withRequest($this->request)
118 'edit_entries' => $this->ui_factory->table()->action()->single(
119 $this->translator->translate(
'edit_entries',
'group'),
120 $uri_builder->withURI($here_uri->
withParameter(
'cmd',
'editEntries')),
124 'edit' => $this->ui_factory->table()->action()->single(
125 $this->translator->translate(
'edit',
'group'),
126 $uri_builder->withURI($here_uri->
withParameter(
'cmd',
'edit')),
130 'toggle_activation' => $this->ui_factory->table()->action()->standard(
131 $this->translator->translate(
'toggle_activation',
'group'),
132 $uri_builder->withURI($here_uri->
withParameter(
'cmd',
'toggleActivation')),
136 'delete' => $this->ui_factory->table()->action()->standard(
137 $this->translator->translate(
'delete',
'group'),
138 $uri_builder->withURI($here_uri->
withParameter(
'cmd',
'confirmDelete')),
142 'translate' => $this->ui_factory->table()->action()->single(
143 $this->translator->translate(
'translate',
'group'),
144 $uri_builder->withURI(
145 $translations_uri->withParameter(
'async',
'true')->withParameter(
163 $query_params_namespace = [
'gsfo'];
165 $query_params_namespace,
repository()
description: > Example for rendering a repository card
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This describes a Table to specify the order of its data (rows).
This is how the factory for UI elements looks.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
buildOrderingRow(string $id, array $record)
withParameter(string $key, $value)
Get URI with modified parameters.