3use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
 
   34                $this->access->checkAccessAndThrowException(
'write');
 
   37                return $this->
add($DIC);
 
   39                $this->access->checkAccessAndThrowException(
'write');
 
   42                return $this->
create($DIC);
 
   44                $this->access->checkAccessAndThrowException(
'write');
 
   47                return $this->
edit($DIC);
 
   49                $this->access->checkAccessAndThrowException(
'write');
 
   52                return $this->
update($DIC);
 
   54                $this->access->checkAccessAndThrowException(
'visible,read');
 
   58                $this->access->checkAccessAndThrowException(
'visible,read');
 
   62                $this->access->checkAccessAndThrowException(
'visible,read');
 
   65                return $this->
index();
 
   67                $this->access->checkAccessAndThrowException(
'write');
 
   71                $this->access->checkAccessAndThrowException(
'write');
 
   75                $this->access->checkAccessAndThrowException(
'write');
 
   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);
 
  134        $f = 
new ilMMSubitemFormGUI(
$DIC->ctrl(), 
$DIC->ui()->factory(), 
$DIC->ui()->renderer(), $this->lng, $this->repository->getItemFacade(), $this->repository);
 
  136        return $f->getHTML();
 
  146        $f = 
new ilMMSubitemFormGUI(
$DIC->ctrl(), 
$DIC->ui()->factory(), 
$DIC->ui()->renderer(), $this->lng, $this->repository->getItemFacade(), $this->repository);
 
  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();
 
An exception for terminatinating execution or to throw for unit testing.
Confirmation screen class.
Class ilMMAbstractItemGUI.
renderInterruptiveModal()
determineCommand(string $standard, string $delete)
Class ilMMItemTranslationGUI.
Class ilMMTopItemGUI @ilCtrl_IsCalledBy ilMMSubItemGUI: ilObjMainMenuGUI @ilCtrl_Calls ilMMSubItemGUI...
const CMD_RENDER_INTERRUPTIVE
Class ilMMSubItemTableGUI.
hash(StreamInterface $stream, $algo, $rawOutput=false)
Calculate a hash of a Stream.
if(empty($password)) $table