function setTabs() { global $tpl, $lng; parent::setTabs(); $tpl->setTitleIcon(ilUtil::getImagePath("icon_seqc_b.png")); $tpl->setTitle($lng->txt("sahs_chapter") . ": " . $this->node_object->getTitle()); }
/** * execute command */ function executeCommand() { global $ilAccess, $ilCtrl, $tpl, $ilTabs, $lng; $next_class = $ilCtrl->getNextClass($this); $cmd = $ilCtrl->getCmd(); if ($this->object->getEditable() && $cmd != "showEditTree") { $this->showEditTree(); } // update expander include_once "./Modules/Scorm2004/classes/class.ilSCORM2004OrganizationHFormGUI.php"; $form_gui = new ilSCORM2004OrganizationHFormGUI(); $form_gui->setTree($this->getEditTree()); $form_gui->updateExpanded(); switch ($next_class) { // notes case "ilnotegui": $this->getTemplate(); $this->setLocator(); $this->setTabs(); switch ($_GET["notes_mode"]) { default: $ilTabs->setTabActive("sahs_organization"); return $this->showOrganization(); } break; // chapters // chapters case "ilscorm2004chaptergui": include_once "./Modules/Scorm2004/classes/class.ilSCORM2004ChapterGUI.php"; $chap_gui = new ilSCORM2004ChapterGUI($this->object, $_GET["obj_id"]); $chap_gui->setParentGUI($this); return $ilCtrl->forwardCommand($chap_gui); // sequencing chapters // sequencing chapters case "ilscorm2004seqchaptergui": include_once "./Modules/Scorm2004/classes/class.ilSCORM2004SeqChapterGUI.php"; $chap_gui = new ilSCORM2004SeqChapterGUI($this->object, $_GET["obj_id"]); $chap_gui->setParentGUI($this); return $ilCtrl->forwardCommand($chap_gui); // scos // scos case "ilscorm2004scogui": include_once "./Modules/Scorm2004/classes/class.ilSCORM2004ScoGUI.php"; $sco_gui = new ilSCORM2004ScoGUI($this->object, $_GET["obj_id"]); $sco_gui->setParentGUI($this); return $ilCtrl->forwardCommand($sco_gui); // assets // assets case "ilscorm2004assetgui": include_once "./Modules/Scorm2004/classes/class.ilSCORM2004AssetGUI.php"; $ass_gui = new ilSCORM2004AssetGUI($this->object, $_GET["obj_id"]); $ass_gui->setParentGUI($this); return $ilCtrl->forwardCommand($ass_gui); // pages // pages case "ilscorm2004pagenodegui": include_once "./Modules/Scorm2004/classes/class.ilSCORM2004PageNodeGUI.php"; $page_gui = new ilSCORM2004PageNodeGUI($this->object, $_GET["obj_id"]); $page_gui->setParentGUI($this); $ilCtrl->forwardCommand($page_gui); break; default: parent::executeCommand(); $this->addHeaderAction(); break; } }