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;
74 $cmd_link =
"ilias.php?baseClass=ilLMPresentationGUI&ref_id=".$this->ref_id.
80 $cmd_link =
"ilias.php?baseClass=ilLMPresentationGUI&ref_id=".$this->ref_id.
81 "&obj_id=".$this->getChildId();
85 $cmd_link =
"ilias.php?baseClass=ilLMPresentationGUI&ref_id=".$this->ref_id;
89 $cmd_link =
"ilias.php?baseClass=ilLMEditorGUI&ref_id=".$this->ref_id;
93 $cmd_link =
"ilias.php?baseClass=ilLMEditorGUI&ref_id=".$this->ref_id.
"&to_props=1";
97 $cmd_link =
"ilias.php?baseClass=ilLMPresentationGUI&ref_id=".$this->ref_id.
98 "&cmd=infoScreen&file_id".$this->getChildId();
102 $cmd_link =
'ilias.php?baseClass=ilLMPresentationGUI&ref_id='.$this->ref_id.
103 '&cmd=downloadFile&file_id='.$this->getChildId();
107 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
108 $cmd_link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
109 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
134 include_once
'Services/Payment/classes/class.ilPaymentObject.php';
175 global
$lng, $rbacsystem;
179 include_once(
"./Modules/LearningModule/classes/class.ilObjLearningModuleAccess.php");
183 $props[] = array(
"alert" =>
true,
"property" => $lng->txt(
"status"),
184 "value" => $lng->txt(
"offline"));
187 if ($rbacsystem->checkAccess(
'write',$this->ref_id))
189 $props[] = array(
"alert" =>
false,
"property" => $lng->txt(
"type"),
190 "value" => $lng->txt(
"lm"));
193 if(IS_PAYMENT_ENABLED)
195 include_once(
"Services/Payment/classes/class.ilPaymentObject.php");
201 $props[] = array(
"alert" =>
false,
"property" => $lng->txt(
"payment_system"),
202 "value" => $lng->txt(
"payment_payed_access"));
206 $props[] = array(
"alert" =>
true,
"property" => $lng->txt(
"payment_system"),
207 "value" => $lng->txt(
"payment_in_sc"));
211 $props[] = array(
"alert" =>
true,
"property" => $lng->txt(
"payment_system"),
212 "value" => $lng->txt(
"payment_buyable"));
getCommandFrame($a_cmd)
Get command target frame.
ilObjectListGUI()
constructor
_getCommands()
get commands
Class ilObjLearningModuleListGUI.
static _isBuyable($a_ref_id, $a_subtype='')
getProperties()
Get item properties.
ilObjLearningModuleListGUI()
constructor
getCommandImage($a_cmd)
Get command icon image.
static _hasAccess($a_ref_id, $a_transaction=0, $a_subtype='')
static _isInCart($a_ref_id)
static _isOffline($a_obj_id)
Type-specific implementation of general status.
getCommandLink($a_cmd)
Overwrite this method, if link target is not build by ctrl class (e.g.