4 include_once(
"./Services/Object/classes/class.ilObjectGUI.php");
23 public function __construct($a_data, $a_id, $a_call_by_reference =
true, $a_prepare_output =
true)
26 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
28 $this->lng->loadLanguageModule(
"exercise");
39 $next_class = $this->ctrl->getNextClass($this);
40 $cmd = $this->ctrl->getCmd();
46 case 'ilpermissiongui':
47 $this->tabs_gui->setTabActive(
'perm_settings');
48 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
50 $this->ctrl->forwardCommand($perm_gui);
56 $cmd =
"editSettings";
75 $this->tabs_gui->addTarget(
"settings",
76 $this->ctrl->getLinkTarget($this,
"editSettings"),
77 array(
"editSettings",
"view"));
82 $this->tabs_gui->addTarget(
"perm_settings",
83 $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"),
84 array(),
'ilpermissiongui');
96 $this->tabs_gui->setTabActive(
'settings');
102 $this->tpl->setContent($a_form->getHTML());
116 if($form->checkInput())
119 $exc_set->set(
"add_to_pd", (
bool)$form->getInput(
"pd"));
122 $ilCtrl->redirect($this,
"editSettings");
125 $form->setValuesByPost();
136 $ilCtrl->redirect($this,
"view");
146 global
$lng, $ilAccess;
148 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
150 $form->setFormAction($this->ctrl->getFormAction($this));
151 $form->setTitle($this->lng->txt(
'exc_admin_settings'));
155 $form->addCommandButton(
'saveSettings',$this->lng->txt(
'save'));
156 $form->addCommandButton(
'cancel',$this->lng->txt(
'cancel'));
162 $pd->
setInfo($lng->txt(
"exc_to_desktop_info"));
163 $pd->setChecked($exc_set->get(
"add_to_pd",
true));
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
initFormSettings()
Init settings property form.
saveSettings()
Save settings.
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
Contructor.
prepareOutput($a_show_subobjects=true)
prepare output
Class ilObjectGUI Basic methods of all Output classes.
editSettings($a_form=null)
Edit settings.
Create styles array
The data for the language used.
executeCommand()
Execute command.
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.
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission.
Exercise Administration Settings.