4include_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';
 
  138        $form->setValuesByArray(array(
 
  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'));
 
  201        ilUtil::sendSuccess(
$lng->txt(
'msg_obj_modified'), 
true);
 
  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));
 
An exception for terminatinating execution or to throw for unit testing.
error($a_errmsg)
set error message @access public
static checkFreetype()
Check whether captcha support is active.
addToExternalSettingsForm($a_form_id)
getAdminTabs()
administration tabs show only permissions and trash folder
executeCommand()
Execute command.
__construct($a_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
Constructor.
populateWithCurrentSettings(ilPropertyFormGUI $form)
editSettings(ilPropertyFormGUI $form=null)
New implementation of ilObjectGUI.
prepareOutput($a_show_subobjects=true)
prepare output
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_node_id=null)
Check permission.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
if(isset($_POST['submit'])) $form