3 include_once(
"./Services/Object/classes/class.ilObjectGUI.php");
44 public function __construct($a_data, $a_id, $a_call_by_reference =
true, $a_prepare_output =
true)
48 $this->rbacsystem = $DIC->rbac()->system();
49 $this->error = $DIC[
"ilErr"];
50 $this->access = $DIC->access();
51 $this->tabs = $DIC->tabs();
52 $this->tpl = $DIC[
"tpl"];
53 $this->ctrl = $DIC->ctrl();
54 $this->lng = $DIC->language();
56 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
58 $this->lng->loadLanguageModule(
'acc');
73 $next_class = $this->ctrl->getNextClass($this);
74 $cmd = $this->ctrl->getCmd();
78 if (!
$rbacsystem->checkAccess(
'read', $this->object->getRefId())) {
79 $ilErr->raiseError($this->lng->txt(
'no_permission'),
$ilErr->WARNING);
82 switch ($next_class) {
83 case 'ilpermissiongui':
84 $this->tabs_gui->setTabActive(
'perm_settings');
85 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
87 $ret = $this->ctrl->forwardCommand($perm_gui);
91 if (!$cmd || $cmd ==
'view') {
92 $cmd =
"editAccessibilitySettings";
106 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
108 $form->setTitle($this->lng->txt(
'settings'));
110 require_once
'Services/Administration/classes/class.ilAdministrationSettingsFormHandler.php';
125 $this->tabs_gui->setTabActive(
'acc_settings');
130 $this->tpl->setContent(
$form->getHTML());
145 if (
$rbacsystem->checkAccess(
"read", $this->object->getRefId())) {
146 $ilTabs->addTab(
'acc_settings', $this->lng->txt(
'settings'), $this->ctrl->getLinkTarget($this,
'editAccessibilitySettings'));
149 if (
$rbacsystem->checkAccess(
"read", $this->object->getRefId())) {
152 $this->ctrl->getLinkTarget($this,
"editAccessKeys"),
153 array(
"editAccessKeys",
"view")
157 if (
$rbacsystem->checkAccess(
"edit_permission", $this->object->getRefId())) {
160 $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"),
174 $this->tabs_gui->setTabActive(
'acc_access_keys');
176 include_once(
"./Services/Accessibility/classes/class.ilAccessKeyTableGUI.php");
191 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"])) {
192 include_once(
"./Services/Accessibility/classes/class.ilAccessKey.php");
196 $ilCtrl->redirect($this,
"editAccessKeys");
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
editAccessKeys()
Edit access keys.
executeCommand()
Execute command.
saveAccessKeys()
Save access keys.
static writeKeys($a_keys, $a_lang_key="0")
Write keys.
TableGUI class for access keys.
prepareOutput($a_show_subobjects=true)
prepare output
if(isset($_POST['submit'])) $form
Class ilObjectGUI Basic methods of all Output classes.
editAccessibilitySettings(ilPropertyFormGUI $form=null)
Create styles array
The data for the language used.
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
Contructor.
static stripSlashesArray($a_arr, $a_strip_html=true, $a_allow="")
Strip slashes from array.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
if(empty($password)) $table