4 include_once(
"./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");
125 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
127 $form->setFormAction($ilCtrl->getFormAction($this));
128 $form->setTitle($lng->txt(
"cont_lrs_settings"));
131 $cb_prop =
new ilCheckboxInputGUI($lng->txt(
"cont_enable_time_scheduled_page_activation"),
132 "time_scheduled_page_activation");
133 $cb_prop->
setInfo($lng->txt(
"cont_enable_time_scheduled_page_activation_info"));
134 $cb_prop->setChecked($lm_set->get(
"time_scheduled_page_activation"));
135 $form->addItem($cb_prop);
139 "replace_mob_feature");
140 $cb_prop->
setInfo($lng->txt(
"cont_replace_mob_feature_info"));
141 $cb_prop->setChecked($lm_set->get(
"replace_mob_feature"));
142 $form->addItem($cb_prop);
147 $tx_prop->
setInfo($lng->txt(
"cont_upload_dir_info"));
148 $tx_prop->setValue($lm_set->get(
"cont_upload_dir"));
149 $form->addItem($tx_prop);
155 $cb_prop->
setInfo($lng->txt(
"license_counter_info"));
156 $cb_prop->setChecked($lic_set->get(
"license_counter"));
157 $form->addItem($cb_prop);
163 $tx_prop->setInfo($lng->txt(
"license_warning_info"));
164 $tx_prop->setValue($lic_set->get(
"license_warning"));
165 $form->addItem($tx_prop);
168 $form->addCommandButton(
"saveSettings", $lng->txt(
"save"));
169 $form->addCommandButton(
"view", $lng->txt(
"cancel"));
171 $this->tpl->setContent($form->getHTML());
182 $lm_set->set(
"time_scheduled_page_activation",
184 $lm_set->set(
"replace_mob_feature",
186 $lm_set->set(
"cont_upload_dir",
190 $lic_set->set(
"license_counter",
192 $lic_set->set(
"license_warning",
197 $ilCtrl->redirect($this,
"view");