19 declare(strict_types=1);
37 private \ILIAS\ResourceStorage\Services
$irss;
42 $this->ui_factory = $DIC->ui()->factory();
44 $this->
ctrl = $DIC->ctrl();
45 $this->irss = $DIC->resourceStorage();
51 $this->
ctrl->setParameterByClass(
52 \ilResourceOverviewGUI::class,
57 $this->ui_factory->button()->shy(
58 $this->
language->txt(
'action_show_revisions'),
59 $this->
ctrl->getLinkTargetByClass(
60 \ilResourceOverviewGUI::class,
64 $this->ui_factory->button()->shy(
66 $this->
ctrl->getLinkTargetByClass(
67 \ilResourceOverviewGUI::class,
71 $this->ui_factory->button()->shy(
72 $this->
language->txt(
'action_download'),
73 $this->
ctrl->getLinkTargetByClass(
74 \ilResourceOverviewGUI::class,
80 if ($resource->getStakeholders() === []) {
82 $actions[] = $this->ui_factory->button()->shy(
83 $this->
language->txt(
'action_remove_resource'),
85 )->withOnClick($modal->getShowSignal());
100 $action = $this->
ctrl->getLinkTargetByClass(
101 \ilResourceOverviewGUI::class,
104 return $this->ui_factory->modal()->interruptive(
106 $this->
language->txt(
'confirm_delete'),
108 )->withAffectedItems([
109 $this->ui_factory->modal()->interruptiveItem()->standard(
This describes commonalities between the different modals.
ILIAS ResourceStorage Services $irss
getActionsForRevision(Revision $revision)
language()
description: > Example for rendring a language glyph.
ILIAS UI Factory $ui_factory
getRemoveConfirmationModal(Revision $revision)