4 include_once(
"./Modules/LearningModule/classes/class.ilLMExplorerGUI.php");
32 $this->lm_pres = $a_lm_pres;
33 $this->lm = $this->lm_pres->lm;
34 $exp_id = (!$this->
getOfflineMode() && $this->lm->getProgressIcons())
37 parent::__construct($a_parent_obj, $a_parent_cmd, $this->lm, $exp_id);
39 $this->lang = $a_lang;
44 if ($this->lm->getTOCMode() !=
"pages")
48 $this->focus_id = $a_focus_id;
57 $root_id = $this->
getTree()->readRootId();
58 if ($this->focus_id > 0 && $this->
getTree()->isInTree($this->focus_id) &&
63 return $this->
getTree()->getNodeData($root_id);
73 $this->tracker = $a_val;
93 $this->highlight_node = $a_val;
131 return $this->lm_pres->getLMPresentationTitle();
134 if ($a_node[
"type"] ==
"st")
137 $this->lm->isActiveNumbering(),
false,
false, $this->lm->getId(),
$this->lang);
139 else if ($a_node[
"type"] ==
"pg")
142 $this->lm->getPageHeader(), $this->lm->isActiveNumbering(),
143 $this->lm_set->get(
"time_scheduled_page_activation"),
true, $this->lm->getId(),
$this->lang);
147 return $this->lm->getTitle();
150 if ($a_node[
"type"] ==
"pg")
153 $this->lm->getPageHeader(), $this->lm->isActiveNumbering(),
154 $this->lm_set->get(
"time_scheduled_page_activation"),
true, $this->lm->getId(),
$this->lang);
157 return $a_node[
"title"];
182 return $this->tracker->getIconForLMObject($a_node, $this->highlight_node);
185 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
187 if ($a_node[
"type"] ==
"du")
189 $a_node[
"type"] =
"lm";
191 $a_name =
"icon_".$a_node[
"type"].
".svg";
192 if ($a_node[
"type"] ==
"pg")
194 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
197 $lm_set->get(
"time_scheduled_page_activation"));
200 $img_sc = (
$lm_set->get(
"time_scheduled_page_activation") &&
206 $a_name =
"icon_pg".$img_sc.
".svg";
210 $a_name =
"icon_pg_d".$img_sc.
".svg";
227 $orig_node_id = $a_node[
"child"];
233 if ($this->lm->getRestrictForwardNavigation())
235 if ($this->
getTracker()->hasPredIncorrectAnswers($orig_node_id))
242 if ($a_node[
"type"] ==
"st")
246 if ($this->lm->getTOCMode() !=
"pages")
248 $a_node = $this->
getTree()->fetchSuccessorNode($a_node[
"child"],
"pg");
255 if ($a_node[
"child"] == 0)
266 if ($this->lm->getTOCMode() !=
"pages")
268 $a_node = $this->
getTree()->fetchSuccessorNode($a_node[
"child"],
"pg");
274 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
276 $this->lm_set->get(
"time_scheduled_page_activation"));
278 if ($a_node[
"child"] > 0 && !$active)
287 if ($a_node[
"child"] <= 0)
294 if (!in_array($orig_node_id,
$path))
302 if ($a_node[
"type"] ==
"pg")
305 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
337 return $this->lm_pres->getLink($this->lm->getRefId(),
"", $a_node[
"child"]);
342 if ($a_node[
"type"] !=
"pg")
348 $a_node = $this->
getTree()->fetchSuccessorNode($a_node[
"child"],
"pg");
349 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
351 $this->lm_set->get(
"time_scheduled_page_activation"));
353 if ($a_node[
"child"] > 0 && !$active)
365 if ($this->export_all_languages)
367 if ($this->lang !=
"" && $this->lang !=
"-")
369 $lang_suffix =
"_".$this->lang;
373 include_once(
"./Modules/LearningModule/classes/class.ilLMPageObject.php");
376 return "lm_pg_".$nid.$lang_suffix.
".html";
378 return "lm_pg_".$a_node[
"child"].$lang_suffix.
".html";
391 include_once(
"./Modules/LearningModule/classes/class.ilLMTracker.php");
getSuccessorNode($a_node_id, $a_type="")
Get successor node (currently only(!) based on lft/rgt tree values)
isNodeHighlighted($a_node)
Is node highlighted?
LM presentation (left frame) explorer GUI class.
static _lookupType($a_obj_id, $a_lm_id=0)
Lookup type.
__construct($a_parent_obj, $a_parent_cmd, ilLMPresentationGUI $a_lm_pres, $a_lang="-", $a_focus_id=0, $export_all_languages=false)
Constructor.
static _getPresentationTitle($a_st_id, $a_mode=IL_CHAPTER_TITLE, $a_include_numbers=false, $a_time_scheduled_activation=false, $a_force_content=false, $a_lm_id=0, $a_lang="-")
get presentation title
isNodeVisible($a_node)
Is node visible?
getRootNode()
Get root node.
setTracker($a_val)
Set tracker.
getHighlightNode()
Get highlighted node.
setSecondaryHighlightedNodes($a_val)
Set secondary (background) highlighted nodes.
setTypeWhiteList($a_val)
Set type white list.
setHighlightNode($a_val)
Set highlighted node.
Class ilLMPresentationGUI.
checkLPIcon($a_id)
Check learning progress icon.
static _lookupActive($a_id, $a_parent_type, $a_check_scheduled_activation=false, $a_lang="-")
lookup activation status
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
getNodeHref($a_node)
Get href for node.
LM editor explorer GUI class.
static getExportId($a_lm_id, $a_lmobj_id, $a_type="pg")
Get export ID.
getNodeId($a_node)
Get id for node.
Create styles array
The data for the language used.
getOfflineMode()
Get offline mode.
static _isScheduledActivation($a_id, $a_parent_type, $a_lang="-")
Check whether page is activated by time schedule.
isNodeClickable($a_node)
Is node clickable.
getNodeIcon($a_node)
Get node icon.
getNodeIconAlt($a_node)
Get node icon alt text.
static _getPresentationTitle($a_pg_id, $a_mode=IL_CHAPTER_TITLE, $a_include_numbers=false, $a_time_scheduled_activation=false, $a_force_content=false, $a_lm_id=0, $a_lang="-")
presentation title doesn't have to be page title, it may be chapter title + page title or chapter tit...
static _isNodeVisible($a_node)
Is node visible for the learner.
static _isPagePublic($a_node_id, $a_check_public_mode=false)
getNodeContent($a_node)
Get node content.