52 private readonly
Group $group,
58 $this->ui_factory = $DIC->ui()->factory();
59 $this->request = $DIC->http()->request();
60 $this->collector = $DIC->globalScreen()->collector()->footer();
61 $this->identification = $DIC->globalScreen()->identification();
66 $ok = $this->ok($this->ui_factory);
67 $nok = $this->nok($this->ui_factory);
69 foreach ($this->
repository->allForParent($this->group->getId()) as $entry) {
70 if ($entry->isCore()) {
71 $title = $this->collector->getSingleItemFromRaw(
72 $this->identification->fromSerializedIdentification($entry->getId()),
75 $title = $this->translations_repository->get($entry)->getDefault()?->getTranslation(
76 ) ?? $entry->getTitle();
80 $this->
hash($entry->getId()),
82 self::COLUMN_TITLE => $title,
83 self::COLUMN_ACTIVE => $entry->isActive() ? $ok : $nok,
87 if ($entry->isCore()) {
88 $row = $row->withDisabledAction(
'delete')
89 ->withDisabledAction(
'edit')
90 ->withDisabledAction(
'translate')
91 ->withDisabledAction(
'move');
100 URI $translations_uri
104 return $this->ui_factory
109 $this->group->getTitle(),
111 self::COLUMN_TITLE => $this->ui_factory->table()->column()->text(
112 $this->translator->translate(
'title',
'entry')
114 self::COLUMN_ACTIVE => $this->ui_factory->table()->column()->statusIcon(
115 $this->translator->translate(
'active',
'entry')
119 ->withRequest($this->request)
122 'edit' => $this->ui_factory->table()->action()->single(
123 $this->translator->translate(
'edit',
'entry'),
124 $uri_builder->withURI($here_uri->
withParameter(
'cmd',
'edit')),
128 'toggle_activation' => $this->ui_factory->table()->action()->standard(
129 $this->translator->translate(
'toggle_activation',
'entry'),
130 $uri_builder->withURI($here_uri->
withParameter(
'cmd',
'toggleActivation')),
134 'delete' => $this->ui_factory->table()->action()->standard(
135 $this->translator->translate(
'delete',
'entry'),
136 $uri_builder->withURI($here_uri->
withParameter(
'cmd',
'confirmDelete')),
140 'move' => $this->ui_factory->table()->action()->standard(
141 $this->translator->translate(
'move',
'entry'),
142 $uri_builder->withURI($here_uri->
withParameter(
'cmd',
'selectMove')),
146 'translate' => $this->ui_factory->table()->action()->single(
147 $this->translator->translate(
'translate',
'group'),
148 $uri_builder->withURI(
149 $translations_uri->withParameter(
'async',
'true')->withParameter(
167 $query_params_namespace = [
'gsfo'];
169 $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.