ILIAS  release_8 Revision v8.24
class.ilObjECSSettingsGUI.php
Go to the documentation of this file.
1<?php
2
18declare(strict_types=1);
19
27{
28 public function __construct($a_data, int $a_id, bool $a_call_by_reference = true, bool $a_prepare_output = true)
29 {
30 $this->type = 'cals';
31 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
32
33 $this->lng->loadLanguageModule('dateplaner');
34 $this->lng->loadLanguageModule('jscalendar');
35 }
36
43 public function executeCommand(): void
44 {
45 $next_class = $this->ctrl->getNextClass($this);
46
47 $this->prepareOutput();
48
49 if (!$this->rbac_system->checkAccess("visible,read", $this->object->getRefId())) {
50 $this->error->raiseError($this->lng->txt('no_permission'), $this->error->WARNING);
51 }
52
53 switch ($next_class) {
54 case 'ilpermissiongui':
55 $this->tabs_gui->setTabActive('perm_settings');
56 $perm_gui = new ilPermissionGUI($this);
57 $this->ctrl->forwardCommand($perm_gui);
58 break;
59
60 case 'ilecssettingsgui':
61 $this->tabs_gui->setTabActive('settings');
63 $this->ctrl->forwardCommand($settings);
64 break;
65
66 default:
67 $this->tabs_gui->setTabActive('settings');
69 $this->ctrl->setCmdClass('ilecssettingsgui');
70 $this->ctrl->forwardCommand($settings);
71 break;
72 }
73 }
74
75
82 public function getAdminTabs(): void
83 {
84 if ($this->access->checkAccess("read", '', $this->object->getRefId())) {
85 $this->tabs_gui->addTarget(
86 "settings",
87 $this->ctrl->getLinkTargetByClass('ilecssettingsgui', "overview"),
88 array(),
89 'ilecssettingsgui'
90 );
91 }
92 if ($this->access->checkAccess('edit_permission', '', $this->object->getRefId())) {
93 $this->tabs_gui->addTarget(
94 "perm_settings",
95 $this->ctrl->getLinkTargetByClass('ilpermissiongui', "perm"),
96 array(),
97 'ilpermissiongui'
98 );
99 }
100 }
101}
error(string $a_errmsg)
executeCommand()
Execute command.
__construct($a_data, int $a_id, bool $a_call_by_reference=true, bool $a_prepare_output=true)
Class ilObjectGUI Basic methods of all Output classes.
ilSetting $settings
prepareOutput(bool $show_sub_objects=true)
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc