28 protected \ILIAS\DI\Container
$dic;
34 bool $a_call_by_reference =
true,
35 bool $a_prepare_output =
true 40 $this->rbacsystem = $DIC->rbac()->system();
41 $this->
access = $DIC->access();
42 $this->
tabs = $DIC->tabs();
43 $this->tpl = $DIC[
"tpl"];
44 $this->
ctrl = $DIC->ctrl();
45 $this->
lng = $DIC->language();
49 $this->
lng->loadLanguageModule(
'acc');
50 $this->
lng->loadLanguageModule(
'adm');
51 $this->
lng->loadLanguageModule(
'meta');
56 $rbacsystem = $this->rbacsystem;
58 $next_class = $this->
ctrl->getNextClass($this);
59 $cmd = $this->
ctrl->getCmd();
63 if (!$rbacsystem->checkAccess(
'read', $this->object->getRefId())) {
67 switch ($next_class) {
68 case 'ilpermissiongui':
69 $this->tabs_gui->setTabActive(
'perm_settings');
71 $ret = $this->
ctrl->forwardCommand($perm_gui);
74 case 'ilaccessibilitydocumentgui':
75 $this->tabs_gui->activateTab(
'acc_ctrl_cpt');
78 $tableDataProviderFactory->setDatabaseAdapter($this->dic->database());
84 $this->dic[
'acc.criteria.type.factory'],
85 $this->dic->ui()->mainTemplate(),
88 $this->dic->language(),
89 $this->dic->rbac()->system(),
91 $this->dic->logger()->acc(),
92 $this->dic->toolbar(),
94 $this->dic->ui()->factory(),
95 $this->dic->ui()->renderer(),
96 $this->dic->filesystem(),
98 $tableDataProviderFactory,
102 $this->
ctrl->forwardCommand($documentGui);
106 if (!$cmd || $cmd ==
'view') {
107 $cmd =
"editAccessibilitySettings";
118 $this->
form->setTitle($this->
lng->txt(
'settings'));
123 $cb->setInfo($this->
lng->txt(
'adm_acc_ctrl_cpt_desc'));
124 $this->
form->addItem($cb);
126 $ti =
new ilTextInputGUI($this->
lng->txt(
"adm_accessibility_contacts"),
"accessibility_support_contacts");
127 $ti->setMaxLength(500);
129 $ti->setInfo($this->
lng->txt(
"adm_accessibility_contacts_info"));
130 $this->
form->addItem($ti);
138 $this->
form->addCommandButton(
"saveAccessibilitySettings", $this->
lng->txt(
"save"));
139 $this->
form->setFormAction($this->
ctrl->getFormAction($this));
152 $rbacsystem = $this->rbacsystem;
154 if (!$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
159 if ($this->
form->checkInput()) {
164 $this->
form->getInput(
"accessibility_support_contacts")
167 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"msg_obj_modified"),
true);
168 $ilCtrl->redirect($this,
"editAccessibilitySettings");
170 $this->
form->setValuesByPost();
177 $this->tabs_gui->setTabActive(
'acc_settings');
182 $this->tpl->setContent($this->
form->getHTML());
187 $rbacsystem = $this->rbacsystem;
190 if ($rbacsystem->checkAccess(
"read", $this->object->getRefId())) {
191 $ilTabs->
addTab(
'acc_settings', $this->
lng->txt(
'settings'), $this->
ctrl->getLinkTarget($this,
'editAccessibilitySettings'));
194 if ($rbacsystem->checkAccess(
"read", $this->object->getRefId())) {
197 $this->
lng->txt(
'acc_ctrl_cpt_txt'),
198 $this->
ctrl->getLinkTargetByClass(
'ilaccessibilitydocumentgui')
202 if ($rbacsystem->checkAccess(
"edit_permission", $this->object->getRefId())) {
205 $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...
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.
form( $class_path, string $cmd)
editAccessibilitySettings(ilPropertyFormGUI $form=null)
static saveControlConceptStatus(bool $status)
saveAccessibilitySettings()
Save accessibility settings form.
__construct(Container $dic, ilPlugin $plugin)
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.