57 $this->ui_factory = $DIC->ui()->factory();
58 $this->request = $DIC->http()->request();
59 $this->collector = $DIC->globalScreen()->collector()->footer();
60 $this->identification = $DIC->globalScreen()->identification();
65 $ok = $this->ok($this->ui_factory);
66 $nok = $this->nok($this->ui_factory);
69 if ($group->isCore()) {
70 $title = $this->collector->getSingleItemFromRaw(
71 $this->identification->fromSerializedIdentification($group->getId()),
74 $title = $this->translations_repository->get($group)->getDefault()?->getTranslation(
75 ) ?? $group->getTitle();
78 $this->
hash($group->getId()),
80 self::COLUMN_TITLE => $this->ui_factory->link()->standard(
83 ->withParameter($this->id_token, $this->
hash($group->getId()))
85 ->withParameter(
'cmd',
'editEntries')
87 self::COLUMN_ACTIVE => $group->isActive() ? $ok : $nok,
88 self::CLUMNS_ITEMS => $group->getItems(),
92 if ($group->isCore()) {
93 $row = $row->withDisabledAction(
'delete')
94 ->withDisabledAction(
'translate')
95 ->withDisabledAction(
'move');
104 URI $translations_uri
108 return $this->ui_factory
113 $this->translator->translate(
'groups'),
115 self::COLUMN_TITLE => $this->ui_factory->table()->column()->link(
116 $this->translator->translate(
'title',
'group')
118 self::COLUMN_ACTIVE => $this->ui_factory->table()->column()->statusIcon(
119 $this->translator->translate(
'active',
'group')
121 self::CLUMNS_ITEMS => $this->ui_factory->table()->column()->text(
122 $this->translator->translate(
'items',
'group')
126 ->withRequest($this->request)
129 'edit_entries' => $this->ui_factory->table()->action()->single(
130 $this->translator->translate(
'edit_entries',
'group'),
131 $uri_builder->withURI($here_uri->
withParameter(
'cmd',
'editEntries')),
135 'edit' => $this->ui_factory->table()->action()->single(
136 $this->translator->translate(
'edit',
'group'),
137 $uri_builder->withURI($here_uri->
withParameter(
'cmd',
'edit')),
141 'toggle_activation' => $this->ui_factory->table()->action()->standard(
142 $this->translator->translate(
'toggle_activation',
'group'),
143 $uri_builder->withURI($here_uri->
withParameter(
'cmd',
'toggleActivation')),
147 'delete' => $this->ui_factory->table()->action()->standard(
148 $this->translator->translate(
'delete',
'group'),
149 $uri_builder->withURI($here_uri->
withParameter(
'cmd',
'confirmDelete')),
153 'translate' => $this->ui_factory->table()->action()->single(
154 $this->translator->translate(
'translate',
'group'),
155 $uri_builder->withURI(
156 $translations_uri->withParameter(
'async',
'true')->withParameter(
174 $query_params_namespace = [
'gsfo'];
176 $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...
Class IdentificationFactory All elements in the GlobalScreen service must be identifiable for the sup...
buildOrderingRow(string $id, array $record)
withParameter(string $key, $value)
Get URI with modified parameters.