4 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004NodeGUI.php");
5 require_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(),
77 $this->slm_object->getAssignedGlossary()
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()
setEditPreview($a_editpreview)
Set Display first Edit tab, then Preview tab, instead of Page and Edit.
Class ilSCORM2004NodeGUI.
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
setLocator()
Set Locator Items.
static getGlossaryOverviewId()
Get sco glossary overlay id.
__construct($a_slm_obj, $a_node_id=0)
Constructor public.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static getEffectiveContentStyleId($a_style_id, $a_type="")
Get effective Style Id.
Class ilSCORM2004PageNodeGUI.
Class ilSCORM2004Page GUI class.
edit()
Edit -> switch to ilscorm2004pagegui.
setContentStyle()
Set content style sheet.
executeCommand()
execute command