5 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
33 $this->static_link_enabled =
true;
34 $this->delete_enabled =
true;
35 $this->cut_enabled =
true;
36 $this->copy_enabled =
true;
37 $this->subscribe_enabled =
true;
38 $this->link_enabled =
true;
39 $this->payment_enabled =
true;
40 $this->info_screen_enabled =
true;
42 $this->gui_class_name =
"ilobjlearningmodulegui";
45 include_once(
'./Modules/LearningModule/classes/class.ilObjLearningModuleAccess.php');
51 $this->child_id = $a_child_id;
55 return $this->child_id;
59 function initItem($a_ref_id, $a_obj_id, $a_title =
"", $a_description =
"")
65 include_once(
"./Modules/LearningModule/classes/class.ilObjLearningModuleAccess.php");
66 $this->last_accessed_page =
88 $cmd_link =
"ilias.php?baseClass=ilLMPresentationGUI&ref_id=".$this->ref_id.
89 "&obj_id=".$this->last_accessed_page;
94 $cmd_link =
"ilias.php?baseClass=ilLMPresentationGUI&ref_id=".$this->ref_id.
95 "&obj_id=".$this->getChildId();
99 $cmd_link =
"ilias.php?baseClass=ilLMPresentationGUI&ref_id=".$this->ref_id;
103 $cmd_link =
"ilias.php?baseClass=ilLMEditorGUI&ref_id=".$this->ref_id;
107 $cmd_link =
"ilias.php?baseClass=ilLMEditorGUI&ref_id=".$this->ref_id.
"&to_props=1";
111 $cmd_link =
"ilias.php?baseClass=ilLMPresentationGUI&ref_id=".$this->ref_id.
112 "&cmd=infoScreen&file_id".$this->getChildId();
116 $cmd_link =
'ilias.php?baseClass=ilLMPresentationGUI&ref_id='.$this->ref_id.
117 '&cmd=downloadFile&file_id='.$this->getChildId();
121 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
122 $cmd_link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
123 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
148 include_once
'Services/Payment/classes/class.ilPaymentObject.php';
189 global
$lng, $rbacsystem;
193 include_once(
"./Modules/LearningModule/classes/class.ilObjLearningModuleAccess.php");
197 $props[] = array(
"alert" =>
true,
"property" => $lng->txt(
"status"),
198 "value" => $lng->txt(
"offline"));
201 if ($rbacsystem->checkAccess(
'write',$this->ref_id))
203 $props[] = array(
"alert" =>
false,
"property" => $lng->txt(
"type"),
204 "value" => $lng->txt(
"lm"));
207 if(IS_PAYMENT_ENABLED)
209 include_once(
"Services/Payment/classes/class.ilPaymentObject.php");
215 $props[] = array(
"alert" =>
false,
"property" => $lng->txt(
"payment_system"),
216 "value" => $lng->txt(
"payment_payed_access"));
220 $props[] = array(
"alert" =>
true,
"property" => $lng->txt(
"payment_system"),
221 "value" => $lng->txt(
"payment_in_sc"));
225 $props[] = array(
"alert" =>
true,
"property" => $lng->txt(
"payment_system"),
226 "value" => $lng->txt(
"payment_buyable"));