24 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
52 $this->static_link_enabled =
true;
53 $this->delete_enabled =
true;
54 $this->cut_enabled =
true;
55 $this->copy_enabled =
false;
56 $this->subscribe_enabled =
true;
57 $this->link_enabled =
true;
58 $this->payment_enabled =
true;
59 $this->info_screen_enabled =
true;
61 $this->gui_class_name =
"ilobjlearningmodulegui";
64 include_once(
'./Modules/LearningModule/classes/class.ilObjLearningModuleAccess.php');
70 $this->child_id = $a_child_id;
74 return $this->child_id;
78 function initItem($a_ref_id, $a_obj_id, $a_title =
"", $a_description =
"")
84 include_once(
"./Modules/LearningModule/classes/class.ilObjLearningModuleAccess.php");
85 $this->last_accessed_page =
105 $cmd_link =
"ilias.php?baseClass=ilLMPresentationGUI&ref_id=".$this->ref_id.
106 "&obj_id=".$this->last_accessed_page;
111 $cmd_link =
"ilias.php?baseClass=ilLMPresentationGUI&ref_id=".$this->ref_id.
112 "&obj_id=".$this->getChildId();
116 $cmd_link =
"ilias.php?baseClass=ilLMPresentationGUI&ref_id=".$this->ref_id;
120 $cmd_link =
"ilias.php?baseClass=ilLMEditorGUI&ref_id=".$this->ref_id;
124 $cmd_link =
"ilias.php?baseClass=ilLMPresentationGUI&ref_id=".$this->ref_id.
125 "&cmd=infoScreen&file_id".$this->getChildId();
129 $cmd_link =
'ilias.php?baseClass=ilLMPresentationGUI&ref_id='.$this->ref_id.
130 '&cmd=downloadFile&file_id='.$this->getChildId();
134 $cmd_link =
"repository.php?ref_id=".$this->ref_id.
"&cmd=$a_cmd";
159 include_once
'Services/Payment/classes/class.ilPaymentObject.php';
199 global
$lng, $rbacsystem;
203 include_once(
"./Modules/LearningModule/classes/class.ilObjLearningModuleAccess.php");
207 $props[] = array(
"alert" =>
true,
"property" => $lng->txt(
"status"),
208 "value" => $lng->txt(
"offline"));
211 if ($rbacsystem->checkAccess(
'write',$this->ref_id))
213 $props[] = array(
"alert" =>
false,
"property" => $lng->txt(
"type"),
214 "value" => $lng->txt(
"lm"));
217 if(IS_PAYMENT_ENABLED)
219 include_once(
"Services/Payment/classes/class.ilPaymentObject.php");
225 $props[] = array(
"alert" =>
false,
"property" => $lng->txt(
"payment_system"),
226 "value" => $lng->txt(
"payment_payed_access"));
230 $props[] = array(
"alert" =>
true,
"property" => $lng->txt(
"payment_system"),
231 "value" => $lng->txt(
"payment_in_sc"));
235 $props[] = array(
"alert" =>
true,
"property" => $lng->txt(
"payment_system"),
236 "value" => $lng->txt(
"payment_buyable"));