4require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004NodeGUI.php");
5require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004PageNode.php");
30 $this->ctrl =
$DIC->ctrl();
31 $this->tpl =
$DIC[
"tpl"];
32 $this->tabs =
$DIC->tabs();
33 $this->lng =
$DIC->language();
36 $ilCtrl->saveParameter($this,
"obj_id");
38 parent::__construct($a_slm_obj, $a_node_id);
57 $next_class =
$ilCtrl->getNextClass($this);
60 switch ($next_class) {
62 case "ilscorm2004pagegui":
63 $tpl->getStandardTemplate();
68 $showViewInFrameset =
true;
70 $ilCtrl->setReturn($this,
"edit");
71 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004PageGUI.php");
73 $this->slm_object->getType(),
74 $this->node_object->getId(),
76 $this->getParentGUI()->object->getId(),
77 $this->slm_object->getAssignedGlossary()
79 $page_gui->setEditPreview(
true);
80 $page_gui->setPresentationTitle($this->node_object->getTitle());
81 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
83 $this->slm_object->getStyleSheetId(),
87 if ($this->node_object->tree->getParentId($this->node_object->getId()) > 0) {
89 $this->node_object->getSLMObject(),
90 $this->node_object->tree->getParentId(
91 $this->node_object->getId()
94 if (count($sco->getGlossaryTermIds()) > 1) {
95 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004ScoGUI.php");
96 $page_gui->setGlossaryOverviewInfo(
104 "ilobjscorm2004learningmodulegui",
108 $page_gui->setExplorerUpdater(
112 "ilobjscorm2004learningmodulegui",
119 "ilobjscorm2004learningmodulegui",
126 $page_gui->setLinkParams(
"ref_id=" . $this->slm_object->getRefId());
129 $page_gui->activateMetaDataEditor(
131 $this->node_object->getType(),
132 $this->node_object->getId(),
143 $ret = $this->$cmd();
157 $ilCtrl->setCmdClass(
"ilscorm2004pagegui");
179 $lng->txt(
"sahs_page") .
": " . $this->node_object->getTitle()
An exception for terminatinating execution or to throw for unit testing.
static getEffectiveContentStyleId($a_style_id, $a_type="")
Get effective Style Id.
Class ilSCORM2004NodeGUI.
setContentStyle()
Set content style sheet.
setLocator()
Set Locator Items.
Class ilSCORM2004Page GUI class.
Class ilSCORM2004PageNodeGUI.
edit()
Edit -> switch to ilscorm2004pagegui.
__construct($a_slm_obj, $a_node_id=0)
Constructor @access public.
executeCommand()
execute command
static getGlossaryOverviewId()
Get sco glossary overlay id.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)