76 $this->tabs = $DIC[
'ilTabs'];
77 $this->lng = $DIC->language();
78 $this->ctrl = $DIC[
'ilCtrl'];
79 $this->tpl = $DIC[
'tpl'];
80 $this->tree = $DIC[
'tree'];
81 $this->toolbar = $DIC[
'ilToolbar'];
82 $this->
http = $DIC->http();
83 $this->ui = $DIC->ui();
85 $this->gs = $DIC->globalScreen();
98 $this->access->checkAccessAndThrowException(
'visible,read');
99 $cmd = $this->ctrl->getCmd();
104 $r = $this->
http->request();
107 if ($cmd ==
"" && isset(
$post[
'interruptive_items'])) {
123 $r = $this->
http->request();
124 $get =
$r->getQueryParams();
127 if (!isset(
$post[
'cmd']) && isset(
$post[
'interruptive_items'])) {
128 $string =
$post[
'interruptive_items'][0];
129 $identification = $this->unhash($string);
131 $identification = $this->unhash($get[self::IDENTIFIER]);
134 return $this->
repository->getItemFacadeForIdentificationString($identification);
140 $f = $this->ui->factory();
141 $r = $this->ui->renderer();
143 $form_action = $this->ctrl->getFormActionByClass(self::class, self::CMD_DELETE);
144 $delete_modal =
$f->modal()->interruptive(
145 $this->lng->txt(
"delete"),
146 $this->lng->txt(self::CMD_CONFIRM_DELETE),
150 echo $r->render([$delete_modal]);
Class ilMMAbstractItemGUI.
Class ilMMItemRepository.
static http()
Fetches the global http state from ILIAS.
Class ilObjMainMenuAccess.
__construct(ilMMTabHandling $tab_handling)
ilMMAbstractItemGUI constructor.
renderInterruptiveModal()
Interface ilMMItemFacadeInterface.
determineCommand(string $standard, string $delete)