ILIAS  release_8 Revision v8.24
class.ilObjCloudGUI.php
Go to the documentation of this file.
1<?php
2
3declare(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}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(int $a_id=0, int $a_id_type=self::REPOSITORY_NODE_ID, int $a_parent_node_id=0)
getType()
Functions that must be overwritten.
executeCommand()
execute command
New implementation of ilObjectGUI.
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...
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc