34 bool $a_call_by_reference =
true,
35 bool $a_prepare_output =
true 38 $this->error = $DIC[
"ilErr"];
39 $this->
access = $DIC->access();
40 $this->
tabs = $DIC->tabs();
41 $this->tpl = $DIC[
"tpl"];
42 $this->
lng = $DIC->language();
43 $this->
ctrl = $DIC->ctrl();
47 $this->
lng->loadLanguageModule(
'mob');
48 $this->
lng->loadLanguageModule(
'mep');
49 $this->
lng->loadLanguageModule(
'content');
54 $next_class = $this->
ctrl->getNextClass($this);
55 $cmd = $this->
ctrl->getCmd();
59 if (!$this->rbac_system->checkAccess(
"visible,read", $this->object->getRefId())) {
60 $this->error->raiseError($this->
lng->txt(
'no_permission'), $this->error->WARNING);
63 switch ($next_class) {
64 case 'ilpermissiongui':
65 $this->tabs_gui->setTabActive(
'perm_settings');
67 $this->
ctrl->forwardCommand($perm_gui);
71 if (!$cmd || $cmd ==
'view') {
72 $cmd =
"editSettings";
84 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId())) {
87 $this->
ctrl->getLinkTarget($this,
"editSettings"),
88 array(
"editSettings",
"view")
92 if ($ilAccess->checkAccess(
'edit_permission',
"", $this->object->getRefId())) {
95 $this->
ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"),
103 bool $a_omit_init =
false 122 if ($this->
form->checkInput()) {
125 $mset->set(
"mep_activate_pages", $this->
form->getInput(
"activate_pages"));
126 $mset->set(
"file_manager_always", $this->
form->getInput(
"file_manager_always"));
127 $mset->set(
"restricted_file_types", $this->
form->getInput(
"restricted_file_types"));
128 $mset->set(
"black_list_file_types", $this->
form->getInput(
"black_list_file_types"));
130 $this->tpl->setOnScreenMessage(
'success',
$lng->
txt(
"msg_obj_modified"),
true);
131 $ilCtrl->redirect($this,
"editSettings");
134 $this->
form->setValuesByPost();
153 $this->
form->addItem($cb);
158 $this->
form->addItem($cb);
164 $ta->
setInfo($this->
lng->txt(
"mobs_restrict_file_types_info"));
165 $this->
form->addItem($ta);
168 $ta =
new ilTextAreaInputGUI($this->
lng->txt(
"mobs_black_list_file_types"),
"black_list_file_types");
169 $ta->
setInfo($this->
lng->txt(
"mobs_black_list_file_types_info"));
170 $this->
form->addItem($ta);
172 if ($ilAccess->checkAccess(
'write',
'', $this->object->getRefId())) {
173 $this->
form->addCommandButton(
"saveSettings",
$lng->
txt(
"save"));
177 $this->
form->setFormAction($ilCtrl->getFormAction($this));
185 $values[
"activate_pages"] = $mset->get(
"mep_activate_pages");
186 $values[
"file_manager_always"] = $mset->get(
"file_manager_always");
187 $values[
"restricted_file_types"] = $mset->get(
"restricted_file_types");
188 $values[
"black_list_file_types"] = $mset->get(
"black_list_file_types");
190 $this->
form->setValuesByArray($values);
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...
addTarget(string $a_text, string $a_link, $a_cmd="", $a_cmdClass="", string $a_frame="", bool $a_activate=false, bool $a_dir_text=false)
prepareOutput(bool $show_sub_objects=true)
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.
Class ilObjectGUI Basic methods of all Output classes.
form( $class_path, string $cmd)
Error Handling & global info handling uses PEAR error class.
__construct(Container $dic, ilPlugin $plugin)
This class represents a text area property in a property form.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)