5 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
23 parent::__construct();
33 $this->copy_enabled =
true;
34 $this->delete_enabled =
true;
35 $this->cut_enabled =
true;
36 $this->subscribe_enabled =
true;
37 $this->link_enabled =
true;
38 $this->info_screen_enabled =
true;
40 $this->gui_class_name =
"ilobjsahslearningmodulegui";
41 include_once(
'./Modules/ScormAicc/classes/class.ilObjSAHSLearningModuleAccess.php');
52 function initItem($a_ref_id, $a_obj_id, $a_title =
"", $a_description =
"")
56 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
75 require_once
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModuleAccess.php";
78 if ($this->offline_mode) {
79 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=".$this->ref_id.
"&cmd=offlineModeStart";
82 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=".$this->ref_id;
87 $cmd_link =
"ilias.php?baseClass=ilSAHSEditGUI&ref_id=".$this->ref_id;
91 case "offlineModeView":
92 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=".$this->ref_id.
"&cmd=offlineModeView";
96 $cmd_link =
"ilias.php?baseClass=ilSAHSEditGUI&ref_id=".$this->ref_id.
"&cmd=editContent";
100 $cmd_link =
"ilias.php?baseClass=ilSAHSEditGUI&ref_id=".$this->ref_id;
104 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=".$this->ref_id.
"&cmd=infoScreen";
107 case "offlineModeStart":
108 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=".$this->ref_id.
"&cmd=offlineModeStart";
112 case "offlineModeStop":
113 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=".$this->ref_id.
"&cmdClass=ilSCORMOfflineModeGUI&cmd=stop";
117 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
118 $cmd_link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
119 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
141 require_once
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php";
143 if ($this->offline_mode) {
147 $frame =
"ilContObj".$this->obj_id;
149 if ($sahs_obj->getEditable() == 1)
183 global
$lng, $rbacsystem;
187 include_once(
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModuleAccess.php");
193 $props[] =
array(
"alert" =>
true,
"property" => $lng->txt(
"status"),
194 "value" => $lng->txt(
"offline"));
198 $props[] =
array(
"alert" =>
true,
199 "value" => $lng->txt(
"authoring_mode"));
202 if ($rbacsystem->checkAccess(
"write", $this->ref_id))
204 $props[] =
array(
"alert" =>
false,
"property" => $lng->txt(
"type"),
205 "value" => $lng->txt(
"sahs"));
211 include_once
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php";
216 $lng->loadLanguageModule(
'certificate');
217 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=".$this->ref_id.
218 "&cmd=downloadCertificate";
219 $props[] =
array(
"alert" =>
false,
"property" => $lng->txt(
"condition_finished"),
220 "value" =>
'<a href="' . $cmd_link .
'">' . $lng->txt(
"download_certificate") .
'</a>');
223 $lng->loadLanguageModule(
'certificate');
224 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=".$this->ref_id.
225 "&cmd=downloadCertificate";
226 $props[] =
array(
"alert" =>
false,
"property" => $lng->txt(
"condition_finished"),
227 "value" =>
'<a href="' . $cmd_link .
'">' . $lng->txt(
"download_certificate") .
'</a>');
getProperties()
Get item properties.
getCommandLink($a_cmd)
Overwrite this method, if link target is not build by ctrl class (e.g.
static _isOffline($a_obj_id)
Type-specific implementation of general status.
static _lookupSubType($a_obj_id)
lookup subtype id (scorm, aicc, hacp)
static _getCommands()
get commands
static _lookupEditable($a_obj_id)
Lookup editable.
Create styles array
The data for the language used.
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item
Class ilObjSAHSLearningModuleListGUI.
getCommandFrame($a_cmd)
Get command target frame.
Class ilObjSCORMLearningModule.
static _lookupUserCertificate($obj_id, $usr_id=0)
Checks whether a certificate exists for the active user or not.