20    public function __construct($a_data, $a_id, $a_call_by_reference = 
true, $a_prepare_output = 
true)
 
   24        $this->lng = 
$DIC->language();
 
   26        $this->ctrl = 
$DIC->ctrl();
 
   27        $this->access = 
$DIC->access();
 
   31        $this->lng->loadLanguageModule(
"exercise");
 
   42        $next_class = $this->ctrl->getNextClass($this);
 
   43        $cmd = $this->ctrl->getCmd();
 
   47        switch ($next_class) {
 
   48            case 'ilpermissiongui':
 
   49                $this->tabs_gui->setTabActive(
'perm_settings');
 
   51                $this->ctrl->forwardCommand($perm_gui);
 
   55                if (!$cmd || $cmd == 
'view') {
 
   56                    $cmd = 
"editSettings";
 
   74            $this->tabs_gui->addTarget(
 
   76                $this->ctrl->getLinkTarget($this, 
"editSettings"),
 
   77                array(
"editSettings", 
"view")
 
   82            $this->tabs_gui->addTarget(
 
   84                $this->ctrl->getLinkTargetByClass(
'ilpermissiongui', 
"perm"),
 
  100        $this->tabs_gui->setTabActive(
'settings');
 
  105        $this->tpl->setContent($a_form->getHTML());
 
  119        if ($form->checkInput()) {
 
  121            $exc_set->set(
"add_to_pd", (
bool) $form->getInput(
"pd"));
 
  123            ilUtil::sendSuccess($this->lng->txt(
"settings_saved"), 
true);
 
  124            $ilCtrl->redirect($this, 
"editSettings");
 
  127        $form->setValuesByPost();
 
  138        $ilCtrl->redirect($this, 
"view");
 
  152        $form->setFormAction($this->ctrl->getFormAction($this));
 
  153        $form->setTitle($this->lng->txt(
'exc_admin_settings'));
 
  156            $form->addCommandButton(
'saveSettings', $this->lng->txt(
'save'));
 
  157            $form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
 
  163        $pd->setInfo(
$lng->txt(
"exc_to_desktop_info"));
 
  164        $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.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc