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);
51 $this->lm->isActiveNumbering(),
false,
false, $this->lm->getId(),
$lang);
68 $a_name =
"icon_".$a_node[
"type"].
".svg";
69 if ($a_node[
"type"] ==
"pg")
71 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
74 $lm_set->get(
"time_scheduled_page_activation"));
77 $img_sc = (
$lm_set->get(
"time_scheduled_page_activation") &&
82 $a_name =
"icon_pg".$img_sc.
".svg";
86 $a_name =
"icon_pg_d".$img_sc.
".svg";
90 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
92 $this->lm->getType());
95 $a_name =
"icon_pg_del".$img_sc.
".svg";
113 if($node[
"public_access"] ==
"y" && $node[
"type"] ==
"pg")
117 if($node[
"public_access"] ==
"y" && $node[
"type"]==
"st")
134 if($from_id === null)
143 if($node[
"type"] ==
"st")
145 $nodes = array_merge($nodes, $this->
getAllNodes($node[
"obj_id"]));
159 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 _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)
for($i=1; $i<=count($kw_cases_sel); $i+=1) $lang
getChildsOfNode($a_parent_node_id)
Get childs of node.
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.
tree explorer lm public area