35 int $a_id_type = self::REPOSITORY_NODE_ID,
36 int $a_parent_node_id = 0
41 $this->error = $DIC[
"ilErr"];
42 $this->
access = $DIC->access();
43 $this->
lng = $DIC->language();
44 $this->
ctrl = $DIC->ctrl();
45 $this->
tabs = $DIC->tabs();
46 $this->
toolbar = $DIC->toolbar();
47 $this->tpl = $DIC[
"tpl"];
62 $next_class = $this->
ctrl->getNextClass($this);
63 $cmd = $this->
ctrl->getCmd();
67 if (!$this->rbac_system->checkAccess(
"visible,read", $this->object->getRefId())) {
71 switch ($next_class) {
72 case 'ilpermissiongui':
73 $this->tabs_gui->setTabActive(
'perm_settings');
75 $this->
ctrl->forwardCommand($perm_gui);
79 if (!$cmd || $cmd ===
'view') {
80 $cmd =
"editSettings";
92 $ilTabs->activateTab(
"settings");
94 if ($this->rbac_system->checkAccess(
"visible,read", $this->object->getRefId())) {
117 $form->addCommandButton(
"saveSettings",
$lng->
txt(
"save"));
120 $form->setTitle(
$lng->
txt(
"settings"));
121 $form->setFormAction($ilCtrl->getFormAction($this));
137 if (!$form->checkInput()) {
138 $form->setValuesByPost();
143 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
'msg_obj_modified'),
true);
144 $ilCtrl->redirect($this,
'editSettings');
150 $this->tabs_gui->addTab(
152 $this->
lng->txt(
"settings"),
153 $this->
ctrl->getLinkTarget($this,
"editSettings")
158 $this->tabs_gui->addTab(
160 $this->
lng->txt(
"perm_settings"),
161 $this->
ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
New implementation of ilObjectGUI.
prepareOutput(bool $show_sub_objects=true)
loadLanguageModule(string $a_module)
Load language module.
__construct(int $a_id=0, int $a_id_type=self::REPOSITORY_NODE_ID, int $a_parent_node_id=0)
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $node_id=null)
setContent(string $a_html)
Sets content for standard template.
editSettings(ilPropertyFormGUI $form=null)
ilGlobalTemplateInterface $tpl
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Error Handling & global info handling uses PEAR error class.
__construct(Container $dic, ilPlugin $plugin)
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
populateWithCurrentSettings(ilPropertyFormGUI $form)
addToExternalSettingsForm(int $a_form_id)