/**
  * 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;
 }
 /**
  * Get node icon alt text
  *
  * @param array $a_node node array
  * @return string alt text
  */
 function getNodeIconAlt($a_node)
 {
     global $lng;
     include_once "./Modules/LearningModule/classes/class.ilLMObject.php";
     if ($a_node["type"] == "du") {
         $a_node["type"] = "lm";
     }
     if ($a_node["type"] == "pg") {
         include_once "./Modules/LearningModule/classes/class.ilLMPage.php";
         $lm_set = new ilSetting("lm");
         $active = ilLMPage::_lookupActive($a_node["child"], $this->lm->getType(), $lm_set->get("time_scheduled_page_activation"));
         if (!$active) {
             return $lng->txt("cont_page_deactivated");
         } else {
             $contains_dis = ilLMPage::_lookupContainsDeactivatedElements($a_node["child"], $this->lm->getType());
             if ($contains_dis) {
                 return $lng->txt("cont_page_deactivated_elements");
             }
         }
     }
     return parent::getNodeIconAlt($a_node);
 }