/** * Constructor * * @param object $a_parent_obj parent gui object * @param string $a_parent_cmd parent cmd * @param ilLMPresentationGUI $a_lm_pres learning module presentation gui object * @param string $a_lang language */ function __construct($a_parent_obj, $a_parent_cmd, ilLMPresentationGUI $a_lm_pres, $a_lang = "-", $a_focus_id = 0) { $this->lm_pres = $a_lm_pres; $this->lm = $this->lm_pres->lm; $exp_id = !$this->getOfflineMode() && $this->lm->getProgressIcons() ? "ilLMProgressTree" : ""; parent::__construct($a_parent_obj, $a_parent_cmd, $this->lm, $exp_id); $this->lm_set = new ilSetting("lm"); $this->lang = $a_lang; if ($a_focus_id > 0) { $this->setSecondaryHighlightedNodes(array($a_focus_id)); } if ($this->lm->getTOCMode() != "pages") { $this->setTypeWhiteList(array("st", "du")); } $this->focus_id = $a_focus_id; }