◆ __construct()
◆ add()
ilFooterGroupsGUI::add |
( |
| ) |
|
|
protected |
◆ addButtons()
ilFooterGroupsGUI::addButtons |
( |
| ) |
|
|
protected |
Definition at line 100 of file class.ilFooterGroupsGUI.php.
References ILIAS\Repository\button(), ILIAS\Repository\ctrl(), null, and ILIAS\UI\examples\MainControls\Slate\Notification\standard().
Referenced by index().
102 $modal = $this->ui_factory->modal()->roundtrip(
103 $this->translator->translate(
'group_add'),
105 )->withAsyncRenderUrl(
106 $this->
ctrl->getLinkTarget($this, self::CMD_ADD)
109 $confirm_reset = $this->ui_factory->prompt()->standard(
110 $this->ui_handling->getHereAsURI(self::CMD_CONFIRM_RESET),
113 $this->dic->toolbar()->addComponent(
117 $this->translator->translate(
'group_add'),
120 ->withOnClick($modal->getShowSignal())
123 $this->dic->toolbar()->addComponent(
127 $this->translator->translate(
'reset_footer'),
130 ->withOnClick($confirm_reset->getShowSignal())
134 return [$modal, $confirm_reset];
button(string $caption, string $cmd)
standard()
description: > This is an example, of how the Notification Slate is generated by assigning Notificat...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ confirmDelete()
ilFooterGroupsGUI::confirmDelete |
( |
| ) |
|
|
protected |
Definition at line 188 of file class.ilFooterGroupsGUI.php.
References $id, ILIAS\Repository\ctrl(), null, and ILIAS\UI\examples\Deck\repository().
192 foreach ($this->ui_handling->getIdentificationsFromRequest(self::GSFO_ID) as
$id) {
194 if ($group ===
null) {
197 if ($group->isCore()) {
198 $items[] = $this->ui_factory->modal()->interruptiveItem()->keyValue(
201 $this->translator->translate(
'info_not_deletable_core') .
202 $this->ui_handling->render($this->nok($this->ui_factory))
206 if ($group->getItems() > 0) {
207 $items[] = $this->ui_factory->modal()->interruptiveItem()->keyValue(
210 $this->translator->translate(
'info_not_deletable_not_empty') .
211 $this->ui_handling->render($this->nok($this->ui_factory))
215 $items[] = $this->ui_factory->modal()->interruptiveItem()->keyValue(
218 $this->ui_handling->render($this->ok($this->ui_factory))
222 $this->ui_handling->outAsyncAsModal(
223 $this->translator->translate(
'group_delete'),
224 $this->
ctrl->getFormAction($this,
'delete'),
repository()
description: > Example for rendering a repository card
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ confirmReset()
ilFooterGroupsGUI::confirmReset |
( |
| ) |
|
|
protected |
Definition at line 137 of file class.ilFooterGroupsGUI.php.
References ILIAS\Repository\ctrl().
139 $this->ui_handling->outAsync(
140 $this->ui_factory->prompt()->state()->show(
141 $this->ui_factory->messageBox()->confirmation(
142 $this->translator->translate(
'confirm_reset')
145 $this->ui_factory->button()->standard(
146 $this->translator->translate(
'reset'),
147 $this->
ctrl->getLinkTarget($this, self::CMD_RESET)
◆ create()
ilFooterGroupsGUI::create |
( |
| ) |
|
◆ delete()
ilFooterGroupsGUI::delete |
( |
| ) |
|
|
private |
Definition at line 229 of file class.ilFooterGroupsGUI.php.
References $id, ILIAS\Repository\ctrl(), and ILIAS\UI\examples\Deck\repository().
231 foreach ($this->ui_handling->getIdentificationsFromRequest(self::GSFO_ID) as
$id) {
236 $this->ui_handling->sendMessageAndRedirect(
238 $this->translator->translate(
'group_deleted'),
239 $this->
ctrl->getLinkTarget($this, self::CMD_DEFAULT)
repository()
description: > Example for rendering a repository card
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ edit()
ilFooterGroupsGUI::edit |
( |
| ) |
|
|
protected |
Definition at line 290 of file class.ilFooterGroupsGUI.php.
References $id, ILIAS\Repository\ctrl(), and ILIAS\UI\examples\Deck\repository().
292 $id = $this->ui_handling->getIdentificationsFromRequest(self::GSFO_ID)[0];
293 $this->ui_handling->saveIdentificationsToRequest(
306 $target = $this->
ctrl->getFormAction($this, self::CMD_UPDATE);
307 $this->ui_handling->outAsyncAsModal(
308 $this->translator->translate(
'group_edit'),
repository()
description: > Example for rendering a repository card
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ editEntries()
ilFooterGroupsGUI::editEntries |
( |
| ) |
|
|
protected |
Definition at line 369 of file class.ilFooterGroupsGUI.php.
References $id, and ILIAS\Repository\ctrl().
371 $id = $this->ui_handling->getIdentificationsFromRequest(self::GSFO_ID)[0];
372 $this->ui_handling->saveIdentificationsToRequest(
373 ilFooterEntriesGUI::class,
377 $this->
ctrl->redirectByClass(ilFooterEntriesGUI::class);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ executeCommand()
ilFooterGroupsGUI::executeCommand |
( |
| ) |
|
Definition at line 383 of file class.ilFooterGroupsGUI.php.
References $id, ILIAS\Repository\ctrl(), index(), null, and ILIAS\UI\examples\Deck\repository().
385 $this->ui_handling->requireReadable();
387 $next_class = $this->
ctrl->getNextClass($this) ??
'';
388 $cmd = $this->
ctrl->getCmd(self::CMD_DEFAULT);
390 switch (strtolower($next_class)) {
391 case strtolower(ilFooterTranslationGUI::class):
393 $this->ui_handling->getIdentificationsFromRequest(self::
GSFO_ID)[0]
396 if ($this->request->getQueryParams()[
'async'] ??
false) {
397 $back_target = $this->ui_handling->buildURI($this->
ctrl->getLinkTarget($this, self::CMD_DEFAULT));
407 $this->
ctrl->forwardCommand($translation);
410 case strtolower(ilFooterEntriesGUI::class):
411 $id = $this->ui_handling->getIdentificationsFromRequest(self::
GSFO_ID)[0];
412 $this->ui_handling->saveIdentificationsToRequest(
413 ilFooterEntriesGUI::class,
419 $this->
ctrl->forwardCommand(
431 case self::CMD_DEFAULT:
432 $this->ui_handling->requireWritable();
436 case self::CMD_CREATE:
438 case self::CMD_UPDATE:
440 $this->ui_handling->backToMainTab();
441 $this->ui_handling->requireWritable();
repository()
description: > Example for rendering a repository card
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ index()
ilFooterGroupsGUI::index |
( |
| ) |
|
|
protected |
◆ reset()
ilFooterGroupsGUI::reset |
( |
| ) |
|
|
protected |
◆ saveOrder()
ilFooterGroupsGUI::saveOrder |
( |
| ) |
|
|
private |
Definition at line 243 of file class.ilFooterGroupsGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\UI\examples\Deck\repository().
245 foreach ($this->request->getParsedBody() as $hashed_id => $position) {
246 $this->
repository->updatePositionById($this->unhash($hashed_id), (
int) $position);
248 $this->ui_handling->sendMessageAndRedirect(
250 $this->translator->translate(
'order_saved'),
251 $this->
ctrl->getLinkTarget($this, self::CMD_DEFAULT)
repository()
description: > Example for rendering a repository card
◆ toggleActivation()
ilFooterGroupsGUI::toggleActivation |
( |
| ) |
|
|
protected |
Definition at line 337 of file class.ilFooterGroupsGUI.php.
References $id, ILIAS\Repository\ctrl(), and ILIAS\UI\examples\Deck\repository().
339 foreach ($this->ui_handling->getIdentificationsFromRequest(self::GSFO_ID) as
$id) {
341 $this->
repository->store($group->withActive(!$group->isActive()));
344 $this->ui_handling->sendMessageAndRedirect(
346 $this->translator->translate(
'group_activation_toggled'),
347 $this->
ctrl->getLinkTarget($this, self::CMD_DEFAULT)
repository()
description: > Example for rendering a repository card
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ update()
ilFooterGroupsGUI::update |
( |
| ) |
|
Definition at line 314 of file class.ilFooterGroupsGUI.php.
References $id, ILIAS\Repository\ctrl(), and ILIAS\UI\examples\Deck\repository().
316 $id = $this->ui_handling->getIdentificationsFromRequest(self::GSFO_ID)[0];
326 $this->ctrl->getFormAction($this, self::CMD_CREATE)
328 $this->
ctrl->redirect($this, self::CMD_DEFAULT);
330 $this->ui_handling->out(
332 $this->ctrl->getFormAction($this, self::CMD_CREATE)
repository()
description: > Example for rendering a repository card
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ $ctrl
◆ $repository
◆ $request
ServerRequestInterface ilFooterGroupsGUI::$request |
|
private |
◆ $ui_factory
Factory ilFooterGroupsGUI::$ui_factory |
|
private |
◆ CMD_ADD
const ilFooterGroupsGUI::CMD_ADD = 'add' |
◆ CMD_CONFIRM_RESET
◆ CMD_CREATE
const ilFooterGroupsGUI::CMD_CREATE = 'create' |
◆ CMD_DEFAULT
const ilFooterGroupsGUI::CMD_DEFAULT = 'index' |
◆ CMD_EDIT
const ilFooterGroupsGUI::CMD_EDIT = 'edit' |
◆ CMD_RESET
const ilFooterGroupsGUI::CMD_RESET = 'reset' |
◆ CMD_SAVE_ORDER
const ilFooterGroupsGUI::CMD_SAVE_ORDER = 'saveOrder' |
◆ CMD_UPDATE
const ilFooterGroupsGUI::CMD_UPDATE = 'update' |
◆ GSFO_ID
const ilFooterGroupsGUI::GSFO_ID = 'gsfo_group_id' |
The documentation for this class was generated from the following file: