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)
28 $this->lng->loadLanguageModule(
"exercise");
39 $next_class = $this->ctrl->getNextClass($this);
40 $cmd = $this->ctrl->getCmd();
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);
61 $cmd =
"editSettings";
80 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
82 $this->tabs_gui->addTarget(
"settings",
83 $this->ctrl->getLinkTarget($this,
"editSettings"),
84 array(
"editSettings",
"view"));
87 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
89 $this->tabs_gui->addTarget(
"perm_settings",
90 $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"),
91 array(),
'ilpermissiongui');
103 $this->tabs_gui->setTabActive(
'settings');
109 $this->tpl->setContent($a_form->getHTML());
123 if($form->checkInput())
126 $exc_set->set(
"add_to_pd", (
bool)$form->getInput(
"pd"));
129 $ilCtrl->redirect($this,
"editSettings");
132 $form->setValuesByPost();
143 $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'));
159 $form->addCommandButton(
'saveSettings',$this->lng->txt(
'save'));
160 $form->addCommandButton(
'cancel',$this->lng->txt(
'cancel'));
165 $pd->
setInfo($lng->txt(
"exc_to_desktop_info"));
166 $pd->setChecked($exc_set->get(
"add_to_pd",
true));