29 protected \ILIAS\DI\Container
$dic;
35 bool $a_call_by_reference =
true,
36 bool $a_prepare_output =
true 41 $this->rbacsystem = $DIC->rbac()->system();
42 $this->
access = $DIC->access();
43 $this->
tabs = $DIC->tabs();
44 $this->tpl = $DIC[
"tpl"];
45 $this->
ctrl = $DIC->ctrl();
46 $this->
lng = $DIC->language();
50 $this->
lng->loadLanguageModule(
'acc');
51 $this->
lng->loadLanguageModule(
'adm');
52 $this->
lng->loadLanguageModule(
'meta');
59 $next_class = $this->
ctrl->getNextClass($this);
60 $cmd = $this->
ctrl->getCmd();
64 if (!$rbacsystem->
checkAccess(
'read', $this->object->getRefId())) {
68 switch ($next_class) {
69 case 'ilpermissiongui':
70 $this->tabs_gui->setTabActive(
'perm_settings');
72 $ret = $this->
ctrl->forwardCommand($perm_gui);
75 case 'ilaccessibilitydocumentgui':
76 $this->tabs_gui->activateTab(
'acc_ctrl_cpt');
79 $tableDataProviderFactory->setDatabaseAdapter($this->dic->database());
85 $this->dic[
'acc.criteria.type.factory'],
86 $this->dic->ui()->mainTemplate(),
89 $this->dic->language(),
90 $this->dic->rbac()->system(),
92 $this->dic->logger()->acc(),
93 $this->dic->toolbar(),
95 $this->dic->ui()->factory(),
96 $this->dic->ui()->renderer(),
97 $this->dic->filesystem(),
99 $tableDataProviderFactory,
103 $this->
ctrl->forwardCommand($documentGui);
107 if (!$cmd || $cmd ==
'view') {
108 $cmd =
"editAccessibilitySettings";
119 $this->
form->setTitle($this->
lng->txt(
'settings'));
124 $cb->setInfo($this->
lng->txt(
'adm_acc_ctrl_cpt_desc'));
125 $this->
form->addItem($cb);
127 $ti =
new ilTextInputGUI($this->
lng->txt(
"adm_accessibility_contacts"),
"accessibility_support_contacts");
128 $ti->setMaxLength(500);
130 $ti->setInfo($this->
lng->txt(
"adm_accessibility_contacts_info"));
131 $this->
form->addItem($ti);
139 $this->
form->addCommandButton(
"saveAccessibilitySettings", $this->
lng->txt(
"save"));
140 $this->
form->setFormAction($this->
ctrl->getFormAction($this));
155 if (!$rbacsystem->
checkAccess(
"write", $this->object->getRefId())) {
160 if ($this->
form->checkInput()) {
165 $this->
form->getInput(
"accessibility_support_contacts")
168 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"msg_obj_modified"),
true);
169 $ilCtrl->redirect($this,
"editAccessibilitySettings");
171 $this->
form->setValuesByPost();
178 $this->tabs_gui->setTabActive(
'acc_settings');
183 $this->tpl->setContent($this->
form->getHTML());
191 if ($rbacsystem->
checkAccess(
"read", $this->object->getRefId())) {
192 $ilTabs->
addTab(
'acc_settings', $this->
lng->txt(
'settings'), $this->
ctrl->getLinkTarget($this,
'editAccessibilitySettings'));
195 if ($rbacsystem->
checkAccess(
"read", $this->object->getRefId())) {
198 $this->
lng->txt(
'acc_ctrl_cpt_txt'),
199 $this->
ctrl->getLinkTargetByClass(
'ilaccessibilitydocumentgui')
203 if ($rbacsystem->
checkAccess(
"edit_permission", $this->object->getRefId())) {
206 $this->
ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"),
__construct( $a_data, int $a_id, bool $a_call_by_reference=true, bool $a_prepare_output=true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
prepareOutput(bool $show_sub_objects=true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
Class ilObjectGUI Basic methods of all Output classes.
editAccessibilitySettings(ilPropertyFormGUI $form=null)
static saveControlConceptStatus(bool $status)
saveAccessibilitySettings()
Save accessibility settings form.
form( $class_path, string $cmd, string $submit_caption="")
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
Class ilAccessibilityDocumentGUI.
static getControlConceptStatus()
addTab(string $a_id, string $a_text, string $a_link, string $a_frame="")
Add a Tab.