4 include_once(
"./Modules/LearningModule/classes/class.ilLMExplorerGUI.php");
23 parent::__construct($a_parent_obj, $a_parent_cmd, $a_lm, $a_id);
25 $this->lng = $DIC->language();
26 $this->ctrl = $DIC->ctrl();
41 $a_name =
"icon_" . $a_node[
"type"] .
".svg";
42 if ($a_node[
"type"] ==
"pg") {
43 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
48 $lm_set->get(
"time_scheduled_page_activation")
52 $img_sc = (
$lm_set->get(
"time_scheduled_page_activation") &&
57 $a_name =
"icon_pg" . $img_sc .
".svg";
60 $a_name =
"icon_pg_d" . $img_sc .
".svg";
62 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
68 $a_name =
"icon_pg_del" . $img_sc .
".svg";
88 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
90 if ($a_node[
"type"] ==
"du") {
91 $a_node[
"type"] =
"lm";
94 if ($a_node[
"type"] ==
"pg") {
95 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
100 $lm_set->get(
"time_scheduled_page_activation")
104 return $lng->txt(
"cont_page_deactivated");
111 return $lng->txt(
"cont_page_deactivated_elements");
115 return parent::getNodeIconAlt($a_node);
128 switch ($a_node[
"type"]) {
131 $ret =
$ilCtrl->getLinkTargetByClass(
"ilobjlearningmodulegui",
"chapters");
137 $ilCtrl->setParameterByClass(
"illmpageobjectgui",
"obj_id", $a_node[
"child"]);
138 $ret =
$ilCtrl->getLinkTargetByClass(array(
"ilobjlearningmodulegui",
"illmpageobjectgui"),
"edit");
139 $ilCtrl->setParameterByClass(
"illmpageobjectgui",
"obj_id",
$_GET[
"obj_id"]);
144 $ilCtrl->setParameterByClass(
"ilstructureobjectgui",
"obj_id", $a_node[
"child"]);
145 $ret =
$ilCtrl->getLinkTargetByClass(array(
"ilobjlearningmodulegui",
"ilstructureobjectgui"),
"view");
146 $ilCtrl->setParameterByClass(
"ilstructureobjectgui",
"obj_id",
$_GET[
"obj_id"]);
__construct($a_parent_obj, $a_parent_cmd, ilObjContentObject $a_lm, $a_id="")
Constructor.
LM editor explorer GUI class.
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)
LM editor explorer GUI class.
getNodeId($a_node)
Get id for node.
getNodeIconAlt($a_node)
Get node icon alt text.
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.
getNodeIcon($a_node)
Get node icon.
getNodeHref($a_node)
Get href for node.
Class ilObjContentObject.