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";
118 $writable = $this->rbacsystem->checkAccess(
'write', $this->
object->getRefId());
121 $this->
form->setTitle($this->
lng->txt(
'settings'));
126 $cb->setInfo($this->
lng->txt(
'adm_acc_ctrl_cpt_desc'));
127 $cb->setDisabled(!$writable);
128 $this->
form->addItem($cb);
130 $ti =
new ilTextInputGUI($this->
lng->txt(
"adm_accessibility_contacts"),
"accessibility_support_contacts");
131 $ti->setMaxLength(500);
133 $ti->setInfo($this->
lng->txt(
"adm_accessibility_contacts_info"));
134 $ti->setDisabled(!$writable);
135 $this->
form->addItem($ti);
144 $this->
form->addCommandButton(
"saveAccessibilitySettings", $this->
lng->txt(
"save"));
145 $this->
form->setFormAction($this->
ctrl->getFormAction($this));
161 if (!$rbacsystem->
checkAccess(
"write", $this->object->getRefId())) {
166 if ($this->
form->checkInput()) {
171 $this->
form->getInput(
"accessibility_support_contacts")
174 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"msg_obj_modified"),
true);
175 $ilCtrl->redirect($this,
"editAccessibilitySettings");
177 $this->
form->setValuesByPost();
184 $this->tabs_gui->setTabActive(
'acc_settings');
189 $this->tpl->setContent($this->
form->getHTML());
197 if ($rbacsystem->
checkAccess(
"read", $this->object->getRefId())) {
198 $ilTabs->
addTab(
'acc_settings', $this->
lng->txt(
'settings'), $this->
ctrl->getLinkTarget($this,
'editAccessibilitySettings'));
201 if ($rbacsystem->
checkAccess(
"read", $this->object->getRefId())) {
204 $this->
lng->txt(
'acc_ctrl_cpt_txt'),
205 $this->
ctrl->getLinkTargetByClass(
'ilaccessibilitydocumentgui')
209 if ($rbacsystem->
checkAccess(
"edit_permission", $this->object->getRefId())) {
212 $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...
editAccessibilitySettings(?ilPropertyFormGUI $form=null)
setContent(string $a_html)
Sets content for standard template.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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 ...
ilGlobalTemplateInterface $tpl
Class ilObjectGUI Basic methods of all Output classes.
static saveControlConceptStatus(bool $status)
saveAccessibilitySettings()
Save accessibility settings form.
form( $class_path, string $cmd, string $submit_caption="")
__construct(Container $dic, ilPlugin $plugin)
Class ilAccessibilityDocumentGUI.
static getControlConceptStatus()
addTab(string $a_id, string $a_text, string $a_link, string $a_frame="")
Add a Tab.