4 include_once(
"./Services/Object/classes/class.ilObject2GUI.php");
38 public function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
40 parent::__construct($a_id, $a_id_type, $a_parent_node_id);
43 $this->rbacsystem = $DIC->rbac()->system();
44 $this->error = $DIC[
"ilErr"];
45 $this->access = $DIC->access();
46 $this->lng = $DIC->language();
47 $this->ctrl = $DIC->ctrl();
48 $this->tabs = $DIC->tabs();
49 $this->toolbar = $DIC->toolbar();
50 $this->tpl = $DIC[
"tpl"];
79 $lng->loadLanguageModule(
"wiki");
81 $next_class = $this->ctrl->getNextClass($this);
82 $cmd = $this->ctrl->getCmd();
86 if (!$ilAccess->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);
99 if (!$cmd || $cmd ==
'view') {
100 $cmd =
"editSettings";
120 $ilTabs->activateTab(
"settings");
136 require_once
'Services/Captcha/classes/class.ilCaptchaUtil.php';
139 'activate_captcha_anonym' => ilCaptchaUtil::isActiveForWiki()
152 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
155 require_once
'Services/Captcha/classes/class.ilCaptchaUtil.php';
156 $cap =
new ilCheckboxInputGUI($this->lng->txt(
'adm_captcha_anonymous_short'),
'activate_captcha_anonym');
157 $cap->
setInfo($this->lng->txt(
'adm_captcha_anonymous_wiki'));
160 $cap->setAlert(ilCaptchaUtil::getPreconditionsMessage());
162 $form->addItem($cap);
165 $form->addCommandButton(
"saveSettings",
$lng->txt(
"save"));
177 protected function saveSettings()
192 if (!
$form->checkInput()) {
193 $form->setValuesByPost();
198 require_once
'Services/Captcha/classes/class.ilCaptchaUtil.php';
199 ilCaptchaUtil::setActiveForWiki((
bool)
$form->getInput(
'activate_captcha_anonym'));
202 $ilCtrl->redirect($this,
'editSettings');
211 $this->tabs_gui->addTab(
213 $this->lng->txt(
"settings"),
214 $this->ctrl->getLinkTarget($this,
"editSettings")
219 $this->tabs_gui->addTab(
221 $this->lng->txt(
"perm_settings"),
222 $this->ctrl->getLinkTargetByClass(
array(get_class($this),
'ilpermissiongui'),
"perm")
233 switch ($a_form_id) {
235 require_once
'Services/Captcha/classes/class.ilCaptchaUtil.php';
240 return array(
'obj_wiks' =>
array(
'editSettings', $fields));
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
getAdminTabs()
administration tabs show only permissions and trash folder
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_node_id=null)
Check permission.
New implementation of ilObjectGUI.
static checkFreetype()
Check whether captcha support is active.
if(isset($_POST['submit'])) $form
editSettings(ilPropertyFormGUI $form=null)
executeCommand()
Execute command.
Create styles array
The data for the language used.
prepareOutput($a_show_subobjects=true)
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
__construct($a_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
Constructor.
populateWithCurrentSettings(ilPropertyFormGUI $form)
addToExternalSettingsForm($a_form_id)