8 include_once(
"./Services/UIComponent/Explorer2/classes/class.ilTreeExplorerGUI.php");
29 public function __construct($a_parent_obj, $a_parent_cmd, $a_lm)
33 include_once(
"./Modules/LearningModule/classes/class.ilLMTree.php");
36 parent::__construct(
"lm_public_section_" . $this->lm->getId(), $a_parent_obj, $a_parent_cmd,
$tree);
53 $this->lm->isActiveNumbering(),
72 $a_name =
"icon_" . $a_node[
"type"] .
".svg";
73 if ($a_node[
"type"] ==
"pg") {
74 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
79 $lm_set->get(
"time_scheduled_page_activation")
83 $img_sc = (
$lm_set->get(
"time_scheduled_page_activation") &&
88 $a_name =
"icon_pg" . $img_sc .
".svg";
91 $a_name =
"icon_pg_d" . $img_sc .
".svg";
93 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
99 $a_name =
"icon_pg_del" . $img_sc .
".svg";
116 if ($node[
"public_access"] ==
"y" && $node[
"type"] ==
"pg") {
119 if ($node[
"public_access"] ==
"y" && $node[
"type"]==
"st") {
135 if ($from_id === null) {
142 if ($node[
"type"] ==
"st") {
143 $nodes = array_merge($nodes, $this->
getAllNodes($node[
"obj_id"]));
157 if ($a_node[
"type"] ==
"pg") {
getNodeContent($a_node)
get node content
isNodeClickable($a_node)
Is not clickable?
__construct($a_parent_obj, $a_parent_cmd, $a_lm)
constructor
getNodeIcon($a_node)
Get node icon.
setNodeOpen($a_id)
Set node to be opened (additional custom opened node, not standard expand behaviour) ...
setNodeSelected($a_id)
Set node to be opened (additional custom opened node, not standard expand behaviour) ...
static _getPresentationTitle( $a_node, $a_mode=IL_PAGE_TITLE, $a_include_numbers=false, $a_time_scheduled_activation=false, $a_force_content=false, $a_lm_id=0, $a_lang="-")
Get affective title.
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)
static getInstance($a_tree_id)
Get Instance.
getAllNodes($from_id=null)
Returns all nodes from tree recursive.
beforeRendering()
select public pages and open public chapter
getNodeId($a_node)
Get id for node.
Create styles array
The data for the language used.
static _lookupContainsDeactivatedElements($a_id, $a_parent_type, $a_lang="-")
lookup whether page contains deactivated elements
static _isScheduledActivation($a_id, $a_parent_type, $a_lang="-")
Check whether page is activated by time schedule.
getRootNode()
Get root node.
Explorer class that works on tree objects (Services/Tree)
getChildsOfNode($a_parent_node_id)
Get childs of node.
tree explorer lm public area