34 $this->access->checkAccessAndThrowException(
'write');
37 return $this->
add($DIC);
38 case self::CMD_CREATE:
39 $this->access->checkAccessAndThrowException(
'write');
42 return $this->
create($DIC);
44 $this->access->checkAccessAndThrowException(
'write');
47 return $this->
edit($DIC);
48 case self::CMD_UPDATE:
49 $this->access->checkAccessAndThrowException(
'write');
52 return $this->
update($DIC);
53 case self::CMD_APPLY_FILTER:
54 $this->access->checkAccessAndThrowException(
'visible,read');
57 case self::CMD_RESET_FILTER:
58 $this->access->checkAccessAndThrowException(
'visible,read');
61 case self::CMD_VIEW_SUB_ITEMS:
62 $this->access->checkAccessAndThrowException(
'visible,read');
65 return $this->
index();
66 case self::CMD_SAVE_TABLE:
67 $this->access->checkAccessAndThrowException(
'write');
70 case self::CMD_CONFIRM_DELETE:
71 $this->access->checkAccessAndThrowException(
'write');
74 case self::CMD_DELETE:
75 $this->access->checkAccessAndThrowException(
'write');
78 case self::CMD_CANCEL:
81 case self::CMD_RENDER_INTERRUPTIVE:
82 $this->access->checkAccessAndThrowException(
'write');
93 $r = $DIC->http()->request()->getParsedBody();
94 foreach (
$r[self::IDENTIFIER] as $identification_string =>
$data) {
95 $item = $this->
repository->getItemFacadeForIdentificationString($this->unhash($identification_string));
96 $position = (int)
$data[
'position'];
97 $item->setPosition($position);
98 $item->setActiveStatus((
bool)
$data[
'active']);
99 $item->setParent($this->unhash((
string) $data[
'parent']));
107 $next_class = $this->ctrl->getNextClass();
109 if ($next_class ==
'') {
116 switch ($next_class) {
117 case strtolower(ilMMItemTranslationGUI::class):
118 $this->tab_handling->initTabs(
ilObjMainMenuGUI::TAB_MAIN, self::CMD_VIEW_SUB_ITEMS,
true, $this->ctrl->getCallHistory()[2][
'class'] ? $this->ctrl->getCallHistory()[2][
'class'] :
"");
120 $this->ctrl->forwardCommand($g);
136 return $f->getHTML();
151 return $f->getHTML();
163 return $f->getHTML();
178 return $f->getHTML();
184 $table->writeFilterToSession();
203 if ($this->access->hasUserPermissionTo(
'write')) {
208 $this->toolbar->addButtonInstance($b);
213 $table->setShowRowsSelector(
false);
218 private function delete()
221 if ($item->isDeletable()) {
225 ilUtil::sendSuccess($this->lng->txt(
"msg_subitem_deleted"),
true);
231 $this->ctrl->redirectByClass(self::class, self::CMD_VIEW_SUB_ITEMS);
240 $this->ctrl->saveParameterByClass(self::class, self::IDENTIFIER);
243 $c->addItem(self::IDENTIFIER, $this->
hash(
$i->getId()),
$i->getDefaultTitle());
244 $c->setFormAction($this->ctrl->getFormActionByClass(self::class));
245 $c->setConfirm($this->lng->txt(self::CMD_DELETE), self::CMD_DELETE);
246 $c->setCancel($this->lng->txt(self::CMD_CANCEL), self::CMD_CANCEL);
247 $c->setHeaderText($this->lng->txt(self::CMD_CONFIRM_DELETE));
249 return $c->getHTML();
Class ilMMAbstractItemGUI.
const CMD_RENDER_INTERRUPTIVE
Class ilMMSubItemTableGUI.
Class ilMMTopItemGUI ilMMSubItemGUI: ilObjMainMenuGUI ilMMSubItemGUI: ilMMItemTranslationGUI.
Class ilMMItemTranslationGUI.
if(empty($password)) $table
renderInterruptiveModal()
hash(StreamInterface $stream, $algo, $rawOutput=false)
Calculate a hash of a Stream.
Confirmation screen class.
determineCommand(string $standard, string $delete)