3 include_once(
"./Services/Object/classes/class.ilObjectGUI.php");
49 public function __construct($a_data, $a_id, $a_call_by_reference =
true, $a_prepare_output =
true)
54 $this->rbacsystem = $DIC->rbac()->system();
55 $this->error = $DIC[
"ilErr"];
56 $this->access = $DIC->access();
57 $this->tabs = $DIC->tabs();
58 $this->tpl = $DIC[
"tpl"];
59 $this->ctrl = $DIC->ctrl();
60 $this->lng = $DIC->language();
64 $this->lng->loadLanguageModule(
'acc');
65 $this->lng->loadLanguageModule(
'adm');
66 $this->lng->loadLanguageModule(
'meta');
81 $next_class = $this->ctrl->getNextClass($this);
82 $cmd = $this->ctrl->getCmd();
86 if (!
$rbacsystem->checkAccess(
'read', $this->object->getRefId())) {
87 $ilErr->raiseError($this->lng->txt(
'no_permission'),
$ilErr->WARNING);
90 switch ($next_class) {
91 case 'ilpermissiongui':
92 $this->tabs_gui->setTabActive(
'perm_settings');
93 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
95 $ret = $this->ctrl->forwardCommand($perm_gui);
98 case 'ilaccessibilitydocumentgui':
99 $this->tabs_gui->activateTab(
'acc_ctrl_cpt');
102 $tableDataProviderFactory->setDatabaseAdapter($this->dic->database());
106 $this->dic[
'acc.criteria.type.factory'],
107 $this->dic->ui()->mainTemplate(),
110 $this->dic->language(),
111 $this->dic->rbac()->system(),
113 $this->dic->logger()->acc(),
114 $this->dic->toolbar(),
116 $this->dic->ui()->factory(),
117 $this->dic->ui()->renderer(),
118 $this->dic->filesystem(),
119 $this->dic->upload(),
120 $tableDataProviderFactory,
124 $this->ctrl->forwardCommand($documentGui);
128 if (!$cmd || $cmd ==
'view') {
129 $cmd =
"editAccessibilitySettings";
143 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
145 $this->form->setTitle($this->lng->txt(
'settings'));
147 $cb =
new ilCheckboxInputGUI($this->lng->txt(
'adm_acc_ctrl_cpt_enable'),
'acc_ctrl_cpt_status');
150 $cb->setInfo($this->lng->txt(
'adm_acc_ctrl_cpt_desc'));
151 $this->form->addItem($cb);
153 $ti =
new ilTextInputGUI($this->lng->txt(
"adm_accessibility_contacts"),
"accessibility_support_contacts");
154 $ti->setMaxLength(500);
156 $ti->setInfo($this->lng->txt(
"adm_accessibility_contacts_info"));
157 $this->form->addItem($ti);
160 $se ->setTitle($this->lng->txt(
'obj_accs_captcha'));
161 $this->form->addItem($se);
163 require_once
'Services/Administration/classes/class.ilAdministrationSettingsFormHandler.php';
170 $this->form->addCommandButton(
"saveAccessibilitySettings", $this->lng->txt(
"save"));
171 $this->form->setFormAction($this->ctrl->getFormAction($this));
187 if (!
$rbacsystem->checkAccess(
"write", $this->object->getRefId())) {
188 $ilErr->raiseError($this->lng->txt(
"permission_denied"),
$ilErr->MESSAGE);
192 if ($this->form->checkInput()) {
198 ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"),
true);
199 $ilCtrl->redirect($this,
"editAccessibilitySettings");
201 $this->form->setValuesByPost();
202 $tpl->setContent($this->form->getHtml());
211 $this->tabs_gui->setTabActive(
'acc_settings');
216 $this->tpl->setContent($this->form->getHTML());
231 if (
$rbacsystem->checkAccess(
"read", $this->object->getRefId())) {
232 $ilTabs->addTab(
'acc_settings', $this->lng->txt(
'settings'), $this->ctrl->getLinkTarget($this,
'editAccessibilitySettings'));
235 if (
$rbacsystem->checkAccess(
"read", $this->object->getRefId())) {
238 $this->ctrl->getLinkTarget($this,
"editAccessKeys"),
239 array(
"editAccessKeys",
"view")
243 if (
$rbacsystem->checkAccess(
"read", $this->object->getRefId())) {
246 $this->lng->txt(
'acc_ctrl_cpt_txt'),
247 $this->ctrl->getLinkTargetByClass(
'ilaccessibilitydocumentgui')
251 if (
$rbacsystem->checkAccess(
"edit_permission", $this->object->getRefId())) {
254 $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"),
268 $this->tabs_gui->setTabActive(
'acc_access_keys');
270 include_once(
"./Services/Accessibility/classes/class.ilAccessKeyTableGUI.php");
273 $tpl->setContent($table->getHTML());
285 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"])) {
286 include_once(
"./Services/Accessibility/classes/class.ilAccessKey.php");
288 ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"),
true);
290 $ilCtrl->redirect($this,
"editAccessKeys");
editAccessKeys()
Edit access keys.
Class ilAccessibilityDocumentHtmlPurifier.
executeCommand()
Execute command.
saveAccessKeys()
Save access keys.
static writeKeys($a_keys, $a_lang_key="0")
Write keys.
TableGUI class for access keys.
Class ilAccessibilityTableDataProviderFactory.
Class ilAccessibilityTrimmedDocumentPurifier.
prepareOutput($a_show_subobjects=true)
prepare output
Class ilObjectGUI Basic methods of all Output classes.
editAccessibilitySettings(ilPropertyFormGUI $form=null)
__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.
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()