3 include_once(
"./classes/class.ilObjectGUI.php");
24 public function __construct($a_data, $a_id, $a_call_by_reference =
true, $a_prepare_output =
true)
29 $this->lng->loadLanguageModule(
'mob');
30 $this->lng->loadLanguageModule(
'mep');
31 $this->lng->loadLanguageModule(
'content');
42 global $rbacsystem,
$ilErr,$ilAccess;
44 $next_class = $this->ctrl->getNextClass($this);
45 $cmd = $this->ctrl->getCmd();
49 if(!$ilAccess->checkAccess(
'read',
'',$this->object->getRefId()))
51 $ilErr->raiseError($this->lng->txt(
'no_permission'),$ilErr->WARNING);
56 case 'ilpermissiongui':
57 $this->tabs_gui->setTabActive(
'perm_settings');
58 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
60 $ret =& $this->ctrl->forwardCommand($perm_gui);
66 $cmd =
"editSettings";
83 global $rbacsystem, $ilAccess, $ilTabs;
85 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
87 $ilTabs->addTarget(
"settings",
88 $this->ctrl->getLinkTarget($this,
"editSettings"),
89 array(
"editSettings",
"view"));
92 if ($ilAccess->checkAccess(
'edit_permission',
"", $this->object->getRefId()))
94 $ilTabs->addTarget(
"perm_settings",
95 $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"),
96 array(),
'ilpermissiongui');
114 $tpl->setContent($this->form->getHTML());
125 if ($this->form->checkInput())
129 $mset->set(
"mep_activate_pages",
$_POST[
"activate_pages"]);
130 $mset->set(
"file_manager_always",
$_POST[
"file_manager_always"]);
133 $ilCtrl->redirect($this,
"editSettings");
136 $this->form->setValuesByPost();
148 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
153 $cb->
setInfo($lng->txt(
"mobs_activate_pages_info"));
154 $this->form->addItem($cb);
157 $cb =
new ilCheckboxInputGUI($lng->txt(
"mobs_always_show_file_manager"),
"file_manager_always");
158 $cb->
setInfo($lng->txt(
"mobs_always_show_file_manager_info"));
159 $this->form->addItem($cb);
161 $this->form->addCommandButton(
"saveSettings", $lng->txt(
"save"));
163 $this->form->setTitle($lng->txt(
"settings"));
164 $this->form->setFormAction($ilCtrl->getFormAction($this));
175 $values[
"activate_pages"] = $mset->get(
"mep_activate_pages");
176 $values[
"file_manager_always"] = $mset->get(
"file_manager_always");
178 $this->form->setValuesByArray($values);