4 include_once(
"./Services/Object/classes/class.ilObjectGUI.php");
26 public function __construct($a_data, $a_id, $a_call_by_reference =
true, $a_prepare_output =
true)
31 $this->lng->loadLanguageModule(
'content');
42 global $rbacsystem,
$ilErr,$ilAccess;
44 $next_class = $this->ctrl->getNextClass($this);
45 $cmd = $this->ctrl->getCmd();
49 if(!$ilAccess->checkAccess(
'read',
'',$this->object->getRefId()))
51 $ilErr->raiseError($this->lng->txt(
'no_permission'),$ilErr->WARNING);
56 case 'illicenseoverviewgui':
57 include_once(
"./Services/License/classes/class.ilLicenseOverviewGUI.php");
59 $ret =& $this->ctrl->forwardCommand($license_gui);
62 case 'ilpermissiongui':
63 $this->tabs_gui->setTabActive(
'perm_settings');
64 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
66 $ret =& $this->ctrl->forwardCommand($perm_gui);
72 $cmd =
"editSettings";
91 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
93 $this->tabs_gui->addTarget(
"cont_edit_lrs_settings",
94 $this->ctrl->getLinkTarget($this,
"editSettings"),
95 array(
"editSettings",
"view"));
97 include_once(
"Services/License/classes/class.ilLicenseAccess.php");
100 $this->tabs_gui->addTarget(
"licenses",
101 $this->ctrl->getLinkTargetByClass(
'illicenseoverviewgui',
''),
102 "",
"illicenseoverviewgui");
106 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
108 $this->tabs_gui->addTarget(
"perm_settings",
109 $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"),
110 array(),
'ilpermissiongui');
123 $lng->loadLanguageModule(
"license");
124 $lng->loadLanguageModule(
"scormdebug");
126 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
128 $form->setFormAction($ilCtrl->getFormAction($this));
129 $form->setTitle($lng->txt(
"cont_lrs_settings"));
134 $cb_prop->
setInfo($lng->txt(
"cont_enable_page_history_info"));
135 $cb_prop->setChecked($lm_set->get(
"page_history", 1));
136 $form->addItem($cb_prop);
139 $cb_prop =
new ilCheckboxInputGUI($lng->txt(
"cont_enable_time_scheduled_page_activation"),
140 "time_scheduled_page_activation");
141 $cb_prop->
setInfo($lng->txt(
"cont_enable_time_scheduled_page_activation_info"));
142 $cb_prop->setChecked($lm_set->get(
"time_scheduled_page_activation"));
143 $form->addItem($cb_prop);
147 "replace_mob_feature");
148 $cb_prop->
setInfo($lng->txt(
"cont_replace_mob_feature_info"));
149 $cb_prop->setChecked($lm_set->get(
"replace_mob_feature"));
150 $form->addItem($cb_prop);
155 $cb_prop->
setInfo($lng->txt(
"cont_html_export_ids_info"));
156 $cb_prop->setChecked($lm_set->get(
"html_export_ids"));
157 $form->addItem($cb_prop);
162 $tx_prop->
setInfo($lng->txt(
"cont_upload_dir_info"));
163 $tx_prop->setValue($lm_set->get(
"cont_upload_dir"));
164 $form->addItem($tx_prop);
170 $cb_prop->
setInfo($lng->txt(
"license_counter_info"));
171 $cb_prop->setChecked($lic_set->get(
"license_counter"));
172 $form->addItem($cb_prop);
178 $tx_prop->setInfo($lng->txt(
"license_warning_info"));
179 $tx_prop->setValue($lic_set->get(
"license_warning"));
180 $form->addItem($tx_prop);
183 $cb_prop =
new ilCheckboxInputGUI($lng->txt(
"scormdebug_global_activate"),
"scormdebug_global_activate");
184 $cb_prop->
setInfo($lng->txt(
"scormdebug_global_activate_info"));
185 $cb_prop->setChecked($lm_set->get(
"scormdebug_global_activate"));
186 $form->addItem($cb_prop);
190 "scormdebug_disable_cache");
191 $cb_prop->
setInfo($lng->txt(
"scormdebug_disable_cache_info"));
192 $cb_prop->setChecked($lm_set->get(
"scormdebug_disable_cache"));
193 $form->addItem($cb_prop);
196 $form->addCommandButton(
"saveSettings", $lng->txt(
"save"));
197 $form->addCommandButton(
"view", $lng->txt(
"cancel"));
199 $this->tpl->setContent($form->getHTML());
210 $lm_set->set(
"time_scheduled_page_activation",
212 $lm_set->set(
"page_history",
214 $lm_set->set(
"replace_mob_feature",
216 $lm_set->set(
"html_export_ids",
218 $lm_set->set(
"cont_upload_dir",
220 $lm_set->setScormDebug(
"scormdebug_global_activate",
222 $lm_set->set(
"scormdebug_disable_cache",
225 $lic_set->set(
"license_counter",
227 $lic_set->set(
"license_warning",
232 $ilCtrl->redirect($this,
"view");