3 declare(strict_types=1);
36 bool $a_call_by_reference =
true,
37 bool $a_prepare_output =
true 46 $this->
lng->loadLanguageModule(
"webr");
51 $next_class = $this->
ctrl->getNextClass($this);
52 $cmd = $this->
ctrl->getCmd();
55 if (!$this->rbac_system->checkAccess(
57 $this->object->getRefId()
59 $this->error->raiseError(
60 $this->
lng->txt(
"no_permission"),
65 switch ($next_class) {
66 case 'ilpermissiongui':
67 $this->tabs_gui->setTabActive(
"perm_settings");
69 $this->
ctrl->forwardCommand($perm_gui);
73 if (!$cmd || $cmd ==
"view") {
74 $cmd =
"editSettings";
83 if ($this->rbac_system->checkAccess(
85 $this->object->getRefId()
87 $this->tabs_gui->addTarget(
89 $this->
ctrl->getLinkTarget($this,
"editSettings"),
90 array(
"editSettings",
"view")
94 if ($this->rbac_system->checkAccess(
96 $this->object->getRefId()
98 $this->tabs_gui->addTarget(
100 $this->
ctrl->getLinkTargetByClass(
"ilpermissiongui",
"perm"),
109 $this->tabs_gui->setTabActive(
'settings');
113 $this->tpl->setContent($a_form->getHTML());
121 if ($form->checkInput()) {
124 $form->getInput(
"links_dynamic")
126 $this->tpl->setOnScreenMessage(
128 $this->
lng->txt(
"settings_saved"),
131 $this->
ctrl->redirect($this,
"editSettings");
133 $form->setValuesByPost();
140 $form->setFormAction($this->
ctrl->getFormAction($this,
"saveSettings"));
141 $form->setTitle($this->
lng->txt(
"settings"));
145 $this->
lng->txt(
"links_dynamic"),
148 $cb->
setInfo($this->
lng->txt(
"links_dynamic_info"));
149 $cb->setChecked((
bool) $this->
settings->get(
"links_dynamic"));
152 if ($this->
access->checkAccess(
155 $this->object->getRefId()
157 $form->addCommandButton(
"saveSettings", $this->
lng->txt(
"save"));
158 $form->addCommandButton(
"view", $this->
lng->txt(
"cancel"));
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
prepareOutput(bool $show_sub_objects=true)
editSettings(?ilPropertyFormGUI $a_form=null)
Class ilObjectGUI Basic methods of all Output classes.
__construct(Container $dic, ilPlugin $plugin)
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
__construct( $a_data, int $a_id, bool $a_call_by_reference=true, bool $a_prepare_output=true)
ilObjWebResourceAdministrationGUI constructor.
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)