3 include_once(
'./Services/Object/classes/class.ilObjectGUI.php');
4 include_once(
'./Modules/StudyProgramme/classes/types/class.ilStudyProgrammeTypeGUI.php');
5 require_once(
'./Modules/StudyProgramme/classes/class.ilObjStudyProgrammeAdmin.php');
23 public function __construct($a_data, $a_id, $a_call_by_reference =
true, $a_prepare_output =
true) {
26 $ilAccess = $DIC[
'ilAccess'];
29 $this->ilAccess = $ilAccess;
32 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
33 $this->lng->loadLanguageModule(
'prg');
44 $next_class = $this->ctrl->getNextClass($this);
45 $cmd = $this->ctrl->getCmd();
47 switch ($next_class) {
48 case 'ilpermissiongui':
49 $this->tabs_gui->setTabActive(
'perm_settings');
50 include_once(
'Services/AccessControl/classes/class.ilPermissionGUI.php');
52 $this->ctrl->forwardCommand($perm_gui);
54 case 'ilstudyprogrammetypegui':
55 $this->tabs_gui->setTabActive(
'prg_subtypes');
57 $this->ctrl->forwardCommand($type_gui);
62 $cmd =
"editSettings";
70 $this->tabs_gui->setTabActive(
'settings');
76 $this->tpl->setContent($a_form->getHTML());
82 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
84 $form->setFormAction($this->ctrl->getFormAction($this,
"saveSettings"));
85 $form->setTitle($this->lng->txt(
"settings"));
87 $radio_grp =
new ilRadioGroupInputGUI($this->lng->txt(
"prg_show_programmes"),
"visible_on_personal_desktop");
92 $radio_grp->setValue($value);
93 $form->addItem($radio_grp);
95 if ($this->ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
97 $form->addCommandButton(
"saveSettings", $this->lng->txt(
"save"));
98 $form->addCommandButton(
"view", $this->lng->txt(
"cancel"));
109 if($form->checkInput())
111 if($this->
save($form))
114 $form->getInput(
'visible_on_personal_desktop'));
117 $this->ctrl->redirect($this,
"editSettings");
121 $form->setValuesByPost();
127 $rbacsystem = $DIC[
'rbacsystem'];
132 if ($rbacsystem->checkAccess(
'visible,read', $this->object->getRefId())) {
133 $this->tabs_gui->addTarget(
'settings', $this->ctrl->getLinkTargetByClass(
'ilObjStudyProgrammeAdminGUI',
'view'));
135 $this->tabs_gui->addTarget(
'prg_subtypes', $this->ctrl->getLinkTargetByClass(
array(
136 'ilObjStudyProgrammeAdminGUI',
137 'ilStudyProgrammeTypeGUI' 140 if ($rbacsystem->checkAccess(
'edit_permission', $this->object->getRefId())) {
141 $this->tabs_gui->addTarget(
'perm_settings', $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
'perm'),
array(),
'ilpermissiongui');
146 $this->ctrl->initBaseClass(
"ilAdministrationGUI");
147 $this->ctrl->setTargetScript(
"ilias.php");
148 $this->ctrl->setParameterByClass(
"ilObjStudyProgrammeAdminGUI",
"ref_id",
$ref_id);
149 $this->ctrl->setParameterByClass(
"ilObjStudyProgrammeAdminGUI",
"admin_mode",
"settings");
150 $this->ctrl->redirectByClass(
array(
"ilAdministrationGUI",
"ilObjStudyProgrammeAdminGUI" ),
"view");
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
set($a_key, $a_val)
write one value to db-table settings public
This class represents an option in a radio group.
const SETTING_VISIBLE_ON_PD_ALLWAYS
Class ilStudyProgrammeTypeGUI.
prepareOutput($a_show_subobjects=true)
prepare output
const SETTING_VISIBLE_ON_PD_READ
Class ilObjectGUI Basic methods of all Output classes.
initFormSettings(ilPropertyFormGUI $a_form=null)
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
Create styles array
The data for the language used.
const SETTING_VISIBLE_ON_PD
get($a_keyword, $a_default_value=false)
get setting
StudyProgramme Administration Settings.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
save(ilPropertyFormGUI $a_form)
getAdminTabs()
administration tabs show only permissions and trash folder