4 include_once(
"./Services/Object/classes/class.ilObject2GUI.php");
42 $lng->loadLanguageModule(
"wiki");
44 $next_class = $this->ctrl->getNextClass($this);
45 $cmd = $this->ctrl->getCmd();
49 if (!$ilAccess->checkAccess(
'read',
'',$this->object->getRefId()))
51 $ilErr->raiseError($this->lng->txt(
'no_permission'),$ilErr->WARNING);
56 case 'ilpermissiongui':
57 $this->tabs_gui->setTabActive(
'perm_settings');
58 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
60 $ret =& $this->ctrl->forwardCommand($perm_gui);
66 $cmd =
"editSettings";
82 $ilTabs->activateTab(
"settings");
91 $tpl->setContent($form->getHTML());
100 require_once
'Services/Captcha/classes/class.ilCaptchaUtil.php';
103 'activate_captcha_anonym' => ilCaptchaUtil::isActiveForWiki()
115 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
118 require_once
'Services/Captcha/classes/class.ilCaptchaUtil.php';
119 $cap =
new ilCheckboxInputGUI($this->lng->txt(
'adm_captcha_anonymous_short'),
'activate_captcha_anonym');
120 $cap->
setInfo($this->lng->txt(
'adm_captcha_anonymous_wiki'));
124 $cap->setAlert(ilCaptchaUtil::getPreconditionsMessage());
126 $form->addItem($cap);
130 $form->addCommandButton(
"saveSettings", $lng->txt(
"save"));
133 $form->setTitle($lng->txt(
"settings"));
134 $form->setFormAction($ilCtrl->getFormAction($this));
142 protected function saveSettings()
157 if(!$form->checkInput())
159 $form->setValuesByPost();
164 require_once
'Services/Captcha/classes/class.ilCaptchaUtil.php';
165 ilCaptchaUtil::setActiveForWiki((
bool)$form->getInput(
'activate_captcha_anonym'));
168 $ilCtrl->redirect($this,
'editSettings');
180 $tabs_gui->addTab(
"settings",
181 $this->lng->txt(
"settings"),
182 $this->ctrl->getLinkTarget($this,
"editSettings"));
188 $tabs_gui->addTab(
"perm_settings",
189 $this->lng->txt(
"perm_settings"),
190 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm")
204 require_once
'Services/Captcha/classes/class.ilCaptchaUtil.php';
209 return array(
'obj_wiks' => array(
'editSettings', $fields));