3 include_once(
"./Services/Object/classes/class.ilObjectGUI.php");
24 public function __construct($a_data, $a_id, $a_call_by_reference =
true, $a_prepare_output =
true)
29 $this->lng->loadLanguageModule(
'acc');
40 global $rbacsystem,
$ilErr,$ilAccess;
42 $next_class = $this->ctrl->getNextClass($this);
43 $cmd = $this->ctrl->getCmd();
47 if(!$ilAccess->checkAccess(
'read',
'',$this->object->getRefId()))
49 $ilErr->raiseError($this->lng->txt(
'no_permission'),$ilErr->WARNING);
54 case 'ilpermissiongui':
55 $this->tabs_gui->setTabActive(
'perm_settings');
56 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
58 $ret =& $this->ctrl->forwardCommand($perm_gui);
64 $cmd =
"editAccessibilitySettings";
78 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
80 $form->setTitle($this->lng->txt(
'settings'));
82 require_once
'Services/Administration/classes/class.ilAdministrationSettingsFormHandler.php';
97 $this->tabs_gui->setTabActive(
'acc_settings');
103 $this->tpl->setContent($form->getHTML());
114 global $rbacsystem, $ilAccess, $ilTabs;
116 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
118 $ilTabs->addTab(
'acc_settings', $this->lng->txt(
'settings'), $this->ctrl->getLinkTarget($this,
'editAccessibilitySettings'));
121 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
123 $ilTabs->addTarget(
"acc_access_keys",
124 $this->ctrl->getLinkTarget($this,
"editAccessKeys"),
125 array(
"editAccessKeys",
"view"));
128 if ($ilAccess->checkAccess(
'edit_permission',
"", $this->object->getRefId()))
130 $ilTabs->addTarget(
"perm_settings",
131 $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"),
132 array(),
'ilpermissiongui');
143 $this->tabs_gui->setTabActive(
'acc_access_keys');
145 include_once(
"./Services/Accessibility/classes/class.ilAccessKeyTableGUI.php");
148 $tpl->setContent($table->getHTML());
158 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
160 include_once(
"./Services/Accessibility/classes/class.ilAccessKey.php");
164 $ilCtrl->redirect($this,
"editAccessKeys");