4 include_once(
"./Modules/LearningModule/classes/class.ilLMExplorerGUI.php");
39 $this->
user = $DIC->user();
40 $this->lm_pres = $a_lm_pres;
41 $this->lm = $this->lm_pres->lm;
42 $exp_id = (!$this->
getOfflineMode() && $this->lm->getProgressIcons())
45 parent::__construct($a_parent_obj, $a_parent_cmd, $this->lm, $exp_id);
47 $this->lang = $a_lang;
48 if ($a_focus_id > 0) {
51 if ($this->lm->getTOCMode() !=
"pages") {
54 $this->focus_id = $a_focus_id;
63 $root_id = $this->
getTree()->readRootId();
64 if ($this->focus_id > 0 && $this->
getTree()->isInTree($this->focus_id) &&
68 return $this->
getTree()->getNodeData($root_id);
78 $this->tracker = $a_val;
98 $this->highlight_node = $a_val;
134 return $this->lm_pres->getLMPresentationTitle();
137 if ($a_node[
"type"] ==
"st") {
141 $this->lm->isActiveNumbering(),
148 } elseif ($a_node[
"type"] ==
"pg") {
151 $this->lm->getPageHeader(),
152 $this->lm->isActiveNumbering(),
153 $this->lm_set->get(
"time_scheduled_page_activation"),
160 return $this->lm->getTitle();
163 return $a_node[
"title"];
185 return $this->tracker->getIconForLMObject($a_node, $this->highlight_node);
188 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
190 if ($a_node[
"type"] ==
"du") {
191 $a_node[
"type"] =
"lm";
193 $a_name =
"icon_" . $a_node[
"type"] .
".svg";
194 if ($a_node[
"type"] ==
"pg") {
195 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
199 $this->lm->getType(),
200 $lm_set->get(
"time_scheduled_page_activation")
204 $img_sc = (
$lm_set->get(
"time_scheduled_page_activation") &&
210 $a_name =
"icon_pg" . $img_sc .
".svg";
213 $a_name =
"icon_pg_d" . $img_sc .
".svg";
230 $orig_node_id = $a_node[
"child"];
235 if ($this->lm->getRestrictForwardNavigation()) {
236 if ($this->
getTracker()->hasPredIncorrectAnswers($orig_node_id)) {
242 if ($a_node[
"type"] ==
"st") {
244 if ($this->lm->getTOCMode() !=
"pages") {
245 $a_node = $this->
getTree()->fetchSuccessorNode($a_node[
"child"],
"pg");
250 if ($a_node[
"child"] == 0) {
257 if ($this->lm->getTOCMode() !=
"pages") {
258 $a_node = $this->
getTree()->fetchSuccessorNode($a_node[
"child"],
"pg");
262 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
265 $this->lm->getType(),
266 $this->lm_set->get(
"time_scheduled_page_activation")
269 if ($a_node[
"child"] > 0 && !$active) {
275 if ($a_node[
"child"] <= 0) {
279 if (!in_array($orig_node_id,
$path)) {
286 if ($a_node[
"type"] ==
"pg") {
288 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
317 return $this->lm_pres->getLink($this->lm->getRefId(),
"", $a_node[
"child"]);
320 if ($a_node[
"type"] !=
"pg") {
324 $a_node = $this->
getTree()->fetchSuccessorNode($a_node[
"child"],
"pg");
325 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
328 $this->lm->getType(),
329 $this->lm_set->get(
"time_scheduled_page_activation")
332 if ($a_node[
"child"] > 0 && !$active) {
341 if ($this->export_all_languages) {
342 if ($this->lang !=
"" && $this->lang !=
"-") {
347 include_once(
"./Modules/LearningModule/classes/class.ilLMPageObject.php");
349 return "lm_pg_" . $nid . $lang_suffix .
".html";
351 return "lm_pg_" . $a_node[
"child"] . $lang_suffix .
".html";
363 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.
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.
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="-", $a_include_short=false)
get presentation title
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.
__construct( $a_parent_obj, $a_parent_cmd, ilLMPresentationGUI $a_lm_pres, $a_lang="-", $a_focus_id=0, $export_all_languages=false)
Constructor.
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.
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="-", $a_include_short=false)
presentation title doesn't have to be page title, it may be chapter title + page title or chapter tit...
getNodeIcon($a_node)
Get node icon.
getNodeIconAlt($a_node)
Get node icon alt text.
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.