19 declare(strict_types=1);
    54                 $this->
access->checkAccessAndThrowException(
'write');
    57                 return $this->
add($DIC);
    58             case self::CMD_CREATE:
    59                 $this->
access->checkAccessAndThrowException(
'write');
    62                 return $this->
create($DIC);
    64                 $this->
access->checkAccessAndThrowException(
'write');
    67                 return $this->
edit($DIC);
    68             case self::CMD_UPDATE:
    69                 $this->
access->checkAccessAndThrowException(
'write');
    72                 return $this->
update($DIC);
    73             case self::CMD_APPLY_FILTER:
    74                 $this->
access->checkAccessAndThrowException(
'visible,read');
    77             case self::CMD_RESET_FILTER:
    78                 $this->
access->checkAccessAndThrowException(
'visible,read');
    81             case self::CMD_VIEW_SUB_ITEMS:
    82                 $this->
access->checkAccessAndThrowException(
'visible,read');
    85                 return $this->
index();
    86             case self::CMD_SAVE_TABLE:
    87                 $this->
access->checkAccessAndThrowException(
'write');
    91                 $this->
access->checkAccessAndThrowException(
'write');
    94             case self::CMD_DELETE:
    95                 $this->
access->checkAccessAndThrowException(
'write');
    98             case self::CMD_CANCEL:
   101             case self::CMD_FLUSH:
   102                 $this->
access->checkAccessAndThrowException(
'write');
   113         $r = $DIC->http()->request()->getParsedBody();
   114         foreach (
$r[self::IDENTIFIER] as $identification_string => 
$data) {
   115             $item = $this->
repository->getItemFacadeForIdentificationString($this->unhash($identification_string));
   116             $position = (
int) 
$data[
'position'];
   117             $item->setPosition($position);
   118             $item->setActiveStatus(isset(
$data[
'active']) && 
$data[
'active']);
   119             $item->setParent($this->unhash((
string) 
$data[
'parent']));
   127         $next_class = $this->
ctrl->getNextClass();
   129         if (
'' === $next_class) {
   136         switch ($next_class) {
   137             case strtolower(ilMMItemTranslationGUI::class):
   140                 $this->
ctrl->forwardCommand($g);
   156         return $f->getHTML();
   171         return $f->getHTML();
   183         return $f->getHTML();
   198         return $f->getHTML();
   204         $table->writeFilterToSession();
   212         $table->resetFilter();
   213         $table->resetOffset();
   224         if ($this->
access->hasUserPermissionTo(
'write')) {
   225             $btn_add = $this->
ui->factory()->button()->standard(
   226                 $this->
lng->txt(self::CMD_ADD),
   227                 $this->
ctrl->getLinkTarget($this, self::CMD_ADD)
   229             $this->
toolbar->addComponent($btn_add);
   233                 $btn_flush = $this->
ui->factory()->button()->standard(
   234                     $this->
lng->txt(self::CMD_FLUSH),
   235                     $this->
ctrl->getLinkTarget($this, self::CMD_FLUSH)
   237                 $this->
toolbar->addComponent($btn_flush);
   243         $table->setShowRowsSelector(
false);
   245         return $table->getHTML();
   248     private function delete(): 
void   251         if ($item->isDeletable()) {
   255         $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_subitem_deleted"), 
true);
   261         $this->
ctrl->redirectByClass(self::class, self::CMD_VIEW_SUB_ITEMS);
   267         if ($item->isInterchangeable()) {
   268             $item->setParent(
'');
   272         $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_moved"), 
true);
 
Class ilMMAbstractItemGUI. 
 
const CMD_RENDER_INTERRUPTIVE
 
repository()
 description: > Example for rendering a repository card 
 
Class ilMMSubItemTableGUI. 
 
Class ilMMTopItemGUI  ilMMSubItemGUI: ilObjMainMenuGUI  ilMMSubItemGUI: ilMMItemTranslationGUI. 
 
Class ilMMItemTranslationGUI. 
 
ilMMItemRepository $repository
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
dispatchCommand(string $cmd)
 
determineCommand(string $standard, string $delete)