4 include_once(
"./Modules/LearningModule/classes/class.ilLMExplorerGUI.php");
29 $this->lm_pres = $a_lm_pres;
30 $this->lm = $this->lm_pres->lm;
31 parent::__construct($a_parent_obj, $a_parent_cmd, $this->lm);
33 $this->lang = $a_lang;
34 if ($this->lm->getTOCMode() !=
"pages")
48 $this->highlight_node = $a_val;
86 return $this->lm->getTitle();
89 if ($a_node[
"type"] ==
"st")
92 $this->lm->isActiveNumbering(),
false, $this->lm->getId(),
$this->lang);
95 if ($a_node[
"type"] ==
"pg")
98 $this->lm->getPageHeader(), $this->lm->isActiveNumbering(),
99 $this->lm_set->get(
"time_scheduled_page_activation"),
true, $this->lm->getId(),
$this->lang);
102 return $a_node[
"title"];
124 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
126 if ($a_node[
"type"] ==
"du")
128 $a_node[
"type"] =
"lm";
130 $a_name =
"icon_".$a_node[
"type"].
"_s.png";
131 if ($a_node[
"type"] ==
"pg")
133 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
136 $lm_set->get(
"time_scheduled_page_activation"));
139 $img_sc = (
$lm_set->get(
"time_scheduled_page_activation") &&
145 $a_name =
"icon_pg".$img_sc.
"_s.png";
149 $a_name =
"icon_pg_d".$img_sc.
"_s.png";
166 $orig_node_id = $a_node[
"child"];
168 if ($a_node[
"type"] ==
"st")
172 if ($this->lm->getTOCMode() !=
"pages")
174 $a_node = $this->
getTree()->fetchSuccessorNode($a_node[
"child"],
"pg");
181 if ($a_node[
"child"] == 0)
192 if ($this->lm->getTOCMode() !=
"pages")
194 $a_node = $this->
getTree()->fetchSuccessorNode($a_node[
"child"],
"pg");
200 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
202 $this->lm_set->get(
"time_scheduled_page_activation"));
204 if ($a_node[
"child"] > 0 && !$active)
213 if ($a_node[
"child"] <= 0)
220 if (!in_array($orig_node_id,
$path))
228 if ($a_node[
"type"] ==
"pg")
231 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
232 include_once
'Services/Payment/classes/class.ilPaymentObject.php';
233 if (($ilUser->getId() == ANONYMOUS_USER_ID ||
266 return $this->lm_pres->getLink($this->lm->getRefId(),
"", $a_node[
"child"]);
271 if ($a_node[
"type"] !=
"pg")
277 $a_node = $this->
getTree()->fetchSuccessorNode($a_node[
"child"],
"pg");
278 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
280 $this->lm_set->get(
"time_scheduled_page_activation"));
282 if ($a_node[
"child"] > 0 && !$active)
292 include_once(
"./Modules/LearningModule/classes/class.ilLMPageObject.php");
295 return "lm_pg_".$nid.
".html";
297 return "lm_pg_".$a_node[
"child"].
".html";
310 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
312 if ($a_node[
"type"] !=
"pg")
318 $this->lm_set->get(
"time_scheduled_page_activation"));
323 if ($act_data[
"show_activation_info"] &&
getSuccessorNode($a_node_id, $a_type="")
Get successor node (currently only(!) based on lft/rgt tree values)
isNodeHighlighted($a_node)
Is node highlighted?
LM editor explorer GUI class.
static _getPresentationTitle($a_st_id, $a_include_numbers=false, $a_time_scheduled_activation=false, $a_lm_id=0, $a_lang="-")
get presentation title
isNodeVisible($a_node)
Is node visible?
static _requiresPurchaseToAccess($a_ref_id, $a_purchasetype='')
this function should be used by all buyable repository objects !!
static now()
Return current timestamp in Y-m-d H:i:s format.
getHighlightNode()
Get highlighted node.
_lookupActivationData($a_id, $a_parent_type, $a_lang="-")
Lookup activation data.
setTypeWhiteList($a_val)
Set type white list.
setHighlightNode($a_val)
Set highlighted node.
__construct($a_parent_obj, $a_parent_cmd, ilLMPresentationGUI $a_lm_pres, $a_lang="-")
Constructor.
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.
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.
getRootNode()
Get root node.
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 _isPagePublic($a_node_id, $a_check_public_mode=false)
getNodeContent($a_node)
Get node content.