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        $ilAccess = 
$DIC[
'ilAccess'];
 
   33        $next_class = $this->ctrl->getNextClass($this);
 
   34        $cmd = $this->ctrl->getCmd();
 
   38        if (!$ilAccess->checkAccess(
"read", 
"", $this->object->getRefId())) {
 
   39            $ilErr->raiseError($this->lng->txt(
"no_permission"), 
$ilErr->WARNING);
 
   42        switch ($next_class) {
 
   43            case 'ilpermissiongui':
 
   44                $this->tabs_gui->setTabActive(
"perm_settings");
 
   45                include_once 
"Services/AccessControl/classes/class.ilPermissionGUI.php";
 
   47                $this->ctrl->forwardCommand($perm_gui);
 
   51                if (!$cmd || $cmd == 
"view") {
 
   52                    $cmd = 
"editSettings";
 
   64        $rbacsystem = 
$DIC[
'rbacsystem'];
 
   66        if ($rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
 
   67            $this->tabs_gui->addTarget(
 
   69                $this->ctrl->getLinkTarget($this, 
"editSettings"),
 
   70                array(
"editSettings", 
"view")
 
   74        if ($rbacsystem->checkAccess(
"edit_permission", $this->object->getRefId())) {
 
   75            $this->tabs_gui->addTarget(
 
   77                $this->ctrl->getLinkTargetByClass(
"ilpermissiongui", 
"perm"),
 
   86        $this->tabs_gui->setTabActive(
'settings');
 
   91        $this->tpl->setContent($a_form->getHTML());
 
  104        if (
$form->checkInput()) {
 
  107            ilUtil::sendSuccess($this->lng->txt(
"settings_saved"), 
true);
 
  108            $this->ctrl->redirect($this, 
"editSettings");
 
  111        $form->setValuesByPost();
 
  120        $ilAccess = 
$DIC[
'ilAccess'];
 
  122        include_once 
"Services/Form/classes/class.ilPropertyFormGUI.php";
 
  124        $form->setFormAction($this->ctrl->getFormAction($this, 
"saveSettings"));
 
  125        $form->setTitle($this->lng->txt(
"settings"));
 
  129        $cb->setInfo($this->lng->txt(
"links_dynamic_info"));
 
  130        $cb->setChecked(
$ilSetting->get(
"links_dynamic"));
 
  133        if ($ilAccess->checkAccess(
"write", 
'', $this->object->getRefId())) {
 
  134            $form->addCommandButton(
"saveSettings", $this->lng->txt(
"save"));
 
  135            $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.
if(isset($_POST['submit'])) $form