ILIAS  release_8 Revision v8.23
class.ilObjCloudGUI.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=0);
4 
31 {
37  public function __construct(int $a_id = 0, int $a_id_type = self::REPOSITORY_NODE_ID, int $a_parent_node_id = 0)
38  {
39  global $DIC;
40  $DIC['lng']->loadLanguageModule('cld');
41 
42  parent::__construct($a_id, $a_id_type, $a_parent_node_id);
43  }
44 
45  public function executeCommand(): void
46  {
47  //Only deleting items remains possible
48  if ($this->ctrl->getCmd() == "delete") {
49  $this->delete();
50  return;
51  }
52  $this->tpl->setOnScreenMessage('failure', $this->lng->txt('abandoned'), true);
53  ilObjectGUI::redirectToRefId($this->parent_id);
54  }
55 
56  public function getType(): string
57  {
58  return 'cld';
59  }
60 }
New implementation of ilObjectGUI.
__construct(int $a_id=0, int $a_id_type=self::REPOSITORY_NODE_ID, int $a_parent_node_id=0)
redirectToRefId(int $ref_id, string $cmd="")
redirects to (repository) view per ref id usually to a container and usually used at the end of a sav...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)