4include_once 
"./Services/Object/classes/class.ilObjectGUI.php" ;
 
   18    public function __construct($a_data, $a_id, $a_call_by_reference = 
true, $a_prepare_output = 
true)
 
   21        parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
 
   23        $this->lng->loadLanguageModule(
"webr");
 
   30        $next_class = $this->ctrl->getNextClass($this);
 
   31        $cmd = $this->ctrl->getCmd();
 
   35        if (!$ilAccess->checkAccess(
"read", 
"", $this->object->getRefId())) {
 
   36            $ilErr->raiseError($this->lng->txt(
"no_permission"), 
$ilErr->WARNING);
 
   39        switch ($next_class) {
 
   40            case 'ilpermissiongui':
 
   41                $this->tabs_gui->setTabActive(
"perm_settings");
 
   42                include_once 
"Services/AccessControl/classes/class.ilPermissionGUI.php";
 
   44                $this->ctrl->forwardCommand($perm_gui);
 
   48                if (!$cmd || $cmd == 
"view") {
 
   49                    $cmd = 
"editSettings";
 
   61        if (
$rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
 
   62            $this->tabs_gui->addTarget(
 
   64                $this->ctrl->getLinkTarget($this, 
"editSettings"),
 
   65                array(
"editSettings", 
"view")
 
   69        if (
$rbacsystem->checkAccess(
"edit_permission", $this->object->getRefId())) {
 
   70            $this->tabs_gui->addTarget(
 
   72                $this->ctrl->getLinkTargetByClass(
"ilpermissiongui", 
"perm"),
 
   81        $this->tabs_gui->setTabActive(
'settings');
 
   86        $this->tpl->setContent($a_form->getHTML());
 
   97        if (
$form->checkInput()) {
 
   98            $ilSetting->set(
"links_dynamic", 
$form->getInput(
"links_dynamic"));
 
  101            $this->ctrl->redirect($this, 
"editSettings");
 
  104        $form->setValuesByPost();
 
  112        include_once 
"Services/Form/classes/class.ilPropertyFormGUI.php";
 
  114        $form->setFormAction($this->ctrl->getFormAction($this, 
"saveSettings"));
 
  115        $form->setTitle($this->lng->txt(
"settings"));
 
  119        $cb->setInfo($this->lng->txt(
"links_dynamic_info"));
 
  120        $cb->setChecked(
$ilSetting->get(
"links_dynamic"));
 
  123        if ($ilAccess->checkAccess(
"write", 
'', $this->object->getRefId())) {
 
  124            $form->addCommandButton(
"saveSettings", $this->lng->txt(
"save"));
 
  125            $form->addCommandButton(
"view", $this->lng->txt(
"cancel"));
 
An exception for terminatinating execution or to throw for unit testing.
Web Resource Administration Settings.
executeCommand()
execute command
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
editSettings(ilObjPropertyFormGUI $a_form=null)
getAdminTabs()
administration tabs show only permissions and trash folder
Class ilObjectGUI Basic methods of all Output classes.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
prepareOutput($a_show_subobjects=true)
prepare output
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
if(isset($_POST['submit'])) $form