5 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
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');
47 public function initItem($a_ref_id, $a_obj_id,
$type, $a_title =
"", $a_description =
"")
51 parent::initItem($a_ref_id, $a_obj_id,
$type, $a_title, $a_description);
70 require_once
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModuleAccess.php";
72 if ($this->offline_mode) {
73 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=" . $this->ref_id .
"&cmd=offlineModeStart";
75 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=" .
$this->ref_id;
78 $cmd_link =
"ilias.php?baseClass=ilSAHSEditGUI&ref_id=" .
$this->ref_id;
82 case "offlineModeView":
83 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=" . $this->ref_id .
"&cmd=offlineModeView";
87 $cmd_link =
"ilias.php?baseClass=ilSAHSEditGUI&ref_id=" . $this->ref_id .
"&cmd=editContent";
91 $cmd_link =
"ilias.php?baseClass=ilSAHSEditGUI&ref_id=" .
$this->ref_id;
95 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=" . $this->ref_id .
"&cmd=infoScreen";
98 case "offlineModeStart":
99 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=" . $this->ref_id .
"&cmd=offlineModeStart";
103 case "offlineModeStop":
104 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=" . $this->ref_id .
"&cmdClass=ilSCORMOfflineModeGUI&cmd=stop";
108 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
109 $cmd_link =
$ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
110 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
128 $ilias = $DIC[
'ilias'];
132 require_once
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php";
134 if ($this->offline_mode) {
139 if ($sahs_obj->getEditable() == 1) {
174 $rbacsystem = $DIC[
'rbacsystem'];
175 $props = parent::getProperties();
180 $props[] = array(
"alert" =>
true,
181 "value" =>
$lng->txt(
"authoring_mode"));
184 if ($rbacsystem->checkAccess(
"write", $this->ref_id)) {
185 $props[] = array(
"alert" =>
false,
"property" =>
$lng->txt(
"type"),
186 "value" =>
$lng->txt(
"sahs"));
190 $allowed = $certValidator->isCertificateDownloadable($this->
user->getId(),
$this->obj_id);
193 $lng->loadLanguageModule(
'certificate');
194 $cmd_link =
"ilias.php?baseClass=ilSAHSPresentationGUI&ref_id=" . $this->ref_id .
"&cmd=downloadCertificate";
197 'property' =>
$lng->txt(
'certificate'),
198 'value' => $DIC->ui()->renderer()->render(
199 $DIC->ui()->factory()->link()->standard(
$lng->txt(
'download_certificate'), $cmd_link)
getProperties()
Get item properties.
getCommandLink($a_cmd)
Overwrite this method, if link target is not build by ctrl class (e.g.
initItem($a_ref_id, $a_obj_id, $type, $a_title="", $a_description="")
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.
__construct(Container $dic, ilPlugin $plugin)
Class ilObjSAHSLearningModuleListGUI.
getCommandFrame($a_cmd)
Get command target frame.
Class ilObjSCORMLearningModule.