ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjECSSettingsGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
28{
29 public function __construct($a_data, int $a_id, bool $a_call_by_reference = true, bool $a_prepare_output = true)
30 {
31 $this->type = 'cals';
32 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
33
34 $this->lng->loadLanguageModule('dateplaner');
35 $this->lng->loadLanguageModule('jscalendar');
36 }
37
44 public function executeCommand(): void
45 {
46 $next_class = $this->ctrl->getNextClass($this);
47
48 $this->prepareOutput();
49
50 if (!$this->rbac_system->checkAccess("visible,read", $this->object->getRefId())) {
51 $this->error->raiseError($this->lng->txt('no_permission'), $this->error->WARNING);
52 }
53
54 switch ($next_class) {
55 case 'ilpermissiongui':
56 $this->tabs_gui->setTabActive('perm_settings');
57 $perm_gui = new ilPermissionGUI($this);
58 $this->ctrl->forwardCommand($perm_gui);
59 break;
60
61 default:
62 $this->tabs_gui->setTabActive('settings');
64 $this->ctrl->forwardCommand($settings);
65 break;
66 }
67 }
68
69
76 public function getAdminTabs(): void
77 {
78 if ($this->access->checkAccess("read", '', $this->object->getRefId())) {
79 $this->tabs_gui->addTarget(
80 "settings",
81 $this->ctrl->getLinkTargetByClass('ilecssettingsgui', "overview"),
82 array(),
83 'ilecssettingsgui'
84 );
85 }
86 if ($this->access->checkAccess('edit_permission', '', $this->object->getRefId())) {
87 $this->tabs_gui->addTarget(
88 "perm_settings",
89 $this->ctrl->getLinkTargetByClass('ilpermissiongui', "perm"),
90 array(),
91 'ilpermissiongui'
92 );
93 }
94 }
95}
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)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc