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 public 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";
77 if ($this->offline_mode) {
78 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=" . $this->ref_id .
"&cmd=offlineModeStart";
80 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=" .
$this->ref_id;
83 $cmd_link =
"ilias.php?baseClass=ilSAHSEditGUI&ref_id=" .
$this->ref_id;
87 case "offlineModeView":
88 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=" . $this->ref_id .
"&cmd=offlineModeView";
92 $cmd_link =
"ilias.php?baseClass=ilSAHSEditGUI&ref_id=" . $this->ref_id .
"&cmd=editContent";
96 $cmd_link =
"ilias.php?baseClass=ilSAHSEditGUI&ref_id=" .
$this->ref_id;
100 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=" . $this->ref_id .
"&cmd=infoScreen";
103 case "offlineModeStart":
104 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=" . $this->ref_id .
"&cmd=offlineModeStart";
108 case "offlineModeStop":
109 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=" . $this->ref_id .
"&cmdClass=ilSCORMOfflineModeGUI&cmd=stop";
113 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
114 $cmd_link =
$ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
115 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
133 $ilias = $DIC[
'ilias'];
137 require_once
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php";
139 if ($this->offline_mode) {
144 if ($sahs_obj->getEditable() == 1) {
179 $rbacsystem = $DIC[
'rbacsystem'];
180 $props = parent::getProperties();
185 $props[] = array(
"alert" =>
true,
186 "value" =>
$lng->txt(
"authoring_mode"));
189 if ($rbacsystem->checkAccess(
"write", $this->ref_id)) {
190 $props[] = array(
"alert" =>
false,
"property" =>
$lng->txt(
"type"),
191 "value" =>
$lng->txt(
"sahs"));
195 $allowed = $certValidator->isCertificateDownloadable($this->
user->getId(),
$this->obj_id);
197 include_once
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php";
201 $lng->loadLanguageModule(
'certificate');
202 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=" . $this->ref_id .
203 "&cmd=downloadCertificate";
204 $props[] = array(
"alert" =>
false,
"property" =>
$lng->txt(
"condition_finished"),
205 "value" =>
'<a href="' . $cmd_link .
'">' .
$lng->txt(
"download_certificate") .
'</a>');
208 $lng->loadLanguageModule(
'certificate');
209 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=" . $this->ref_id .
210 "&cmd=downloadCertificate";
211 $props[] = array(
"alert" =>
false,
"property" =>
$lng->txt(
"condition_finished"),
212 "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 _lookupSubType($a_obj_id)
lookup subtype id (scorm, )
static _getCommands()
get commands
Validates if an active certificate is stored in the database and can be downloaded by the user...
static _lookupEditable($a_obj_id)
Lookup editable.
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.