ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilObjECSSettingsGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once './Services/Object/classes/class.ilObjectGUI.php';
5 
15 {
16 
22  public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = true)
23  {
24  global $lng;
25 
26  $this->type = 'cals';
27  parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
28 
29  $this->lng = $lng;
30  $this->lng->loadLanguageModule('dateplaner');
31  $this->lng->loadLanguageModule('jscalendar');
32  }
33 
40  public function executeCommand()
41  {
42  global $ilErr,$ilAccess;
43 
44  $next_class = $this->ctrl->getNextClass($this);
45  $cmd = $this->ctrl->getCmd();
46 
47  $this->prepareOutput();
48 
49  if (!$ilAccess->checkAccess('read', '', $this->object->getRefId())) {
50  $ilErr->raiseError($this->lng->txt('no_permission'), $ilErr->WARNING);
51  }
52 
53  switch ($next_class) {
54  case 'ilpermissiongui':
55  $this->tabs_gui->setTabActive('perm_settings');
56  include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
57  $perm_gui = new ilPermissionGUI($this);
58  $ret =&$this->ctrl->forwardCommand($perm_gui);
59  break;
60 
61  case 'ilecssettingsgui':
62  $this->tabs_gui->setTabActive('settings');
63  include_once './Services/WebServices/ECS/classes/class.ilECSSettingsGUI.php';
65  $this->ctrl->forwardCommand($settings);
66  break;
67 
68  default:
69  $this->tabs_gui->setTabActive('settings');
70  include_once './Services/WebServices/ECS/classes/class.ilECSSettingsGUI.php';
72  $this->ctrl->setCmdClass('ilecssettingsgui');
73  $this->ctrl->forwardCommand($settings);
74  break;
75  }
76  return true;
77  }
78 
79 
86  public function getAdminTabs()
87  {
88  global $rbacsystem, $ilAccess;
89  if ($ilAccess->checkAccess("read", '', $this->object->getRefId())) {
90  $this->tabs_gui->addTarget(
91  "settings",
92  $this->ctrl->getLinkTargetByClass('ilecssettingsgui', "overview"),
93  array(),
94  'ilecssettingsgui'
95  );
96  }
97  if ($ilAccess->checkAccess('edit_permission', '', $this->object->getRefId())) {
98  $this->tabs_gui->addTarget(
99  "perm_settings",
100  $this->ctrl->getLinkTargetByClass('ilpermissiongui', "perm"),
101  array(),
102  'ilpermissiongui'
103  );
104  }
105  }
106 }
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
Constructor.
prepareOutput($a_show_subobjects=true)
prepare output
Class ilObjectGUI Basic methods of all Output classes.
Create styles array
The data for the language used.
executeCommand()
Execute command.
$ret
Definition: parser.php:6
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.