19declare(strict_types=1);
44 $this->ui_factory =
$DIC->ui()->factory();
46 $this->
ctrl = $DIC->ctrl();
47 $this->irss =
$DIC->resourceStorage();
53 $this->
ctrl->setParameterByClass(
56 $revision->getIdentification()->serialize()
59 $this->ui_factory->button()->shy(
60 $this->
language->txt(
'action_show_revisions'),
61 $this->ctrl->getLinkTargetByClass(
62 \ilResourceOverviewGUI::class,
66 $this->ui_factory->button()->shy(
68 $this->ctrl->getLinkTargetByClass(
69 \ilResourceOverviewGUI::class,
73 $this->ui_factory->button()->shy(
74 $this->
language->txt(
'action_download'),
75 $this->ctrl->getLinkTargetByClass(
76 \ilResourceOverviewGUI::class,
82 if ($resource->getStakeholders() === []) {
84 $actions[] = $this->ui_factory->button()->shy(
85 $this->
language->txt(
'action_remove_resource'),
87 )->withOnClick($modal->getShowSignal());
96 return $this->collected_modals;
102 $action = $this->
ctrl->getLinkTargetByClass(
103 \ilResourceOverviewGUI::class,
106 return $this->ui_factory->modal()->interruptive(
108 $this->language->txt(
'confirm_delete'),
110 )->withAffectedItems([
111 $this->ui_factory->modal()->interruptiveItem()->standard(
Builds a Color from either hex- or rgb values.
getActionsForRevision(Revision $revision)
getRemoveConfirmationModal(Revision $revision)
This describes commonalities between the different modals.
This is how the factory for UI elements looks.