4include_once(
"./Services/Object/classes/class.ilObjectGUI.php");
 
   23    public function __construct($a_data, $a_id, $a_call_by_reference = 
true, $a_prepare_output = 
true)
 
   27        $this->lng = 
$DIC->language();
 
   29        $this->ctrl = 
$DIC->ctrl();
 
   30        $this->access = 
$DIC->access();
 
   32        parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
 
   34        $this->lng->loadLanguageModule(
"exercise");
 
   45        $next_class = $this->ctrl->getNextClass($this);
 
   46        $cmd = $this->ctrl->getCmd();
 
   50        switch ($next_class) {
 
   51            case 'ilpermissiongui':
 
   52                $this->tabs_gui->setTabActive(
'perm_settings');
 
   53                include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
   55                $this->ctrl->forwardCommand($perm_gui);
 
   59                if (!$cmd || $cmd == 
'view') {
 
   60                    $cmd = 
"editSettings";
 
   78            $this->tabs_gui->addTarget(
 
   80                $this->ctrl->getLinkTarget($this, 
"editSettings"),
 
   81                array(
"editSettings", 
"view")
 
   86            $this->tabs_gui->addTarget(
 
   88                $this->ctrl->getLinkTargetByClass(
'ilpermissiongui', 
"perm"),
 
  104        $this->tabs_gui->setTabActive(
'settings');
 
  109        $this->tpl->setContent($a_form->getHTML());
 
  123        if (
$form->checkInput()) {
 
  125            $exc_set->set(
"add_to_pd", (
bool) 
$form->getInput(
"pd"));
 
  128            $ilCtrl->redirect($this, 
"editSettings");
 
  131        $form->setValuesByPost();
 
  142        $ilCtrl->redirect($this, 
"view");
 
  155        include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
 
  157        $form->setFormAction($this->ctrl->getFormAction($this));
 
  158        $form->setTitle($this->lng->txt(
'exc_admin_settings'));
 
  161            $form->addCommandButton(
'saveSettings', $this->lng->txt(
'save'));
 
  162            $form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
 
  168        $pd->setInfo(
$lng->txt(
"exc_to_desktop_info"));
 
  169        $pd->setChecked($exc_set->get(
"add_to_pd", 
true));
 
An exception for terminatinating execution or to throw for unit testing.
Exercise Administration Settings.
initFormSettings()
Init settings property form.
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
Contructor.
editSettings($a_form=null)
Edit settings.
executeCommand()
Execute command.
saveSettings()
Save settings.
Class ilObjectGUI Basic methods of all Output classes.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
prepareOutput($a_show_subobjects=true)
prepare output
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
if(isset($_POST['submit'])) $form