24 require_once(
"./Modules/LearningModule/classes/class.ilLMExplorer.php");
47 $this->gui_class = $a_gui_class;
48 $this->force_open_path = array();
58 $this->force_open_path = $a_path;
72 $tpl->setCurrentBlock(
"icon");
74 $tpl->setVariable(
"TXT_ALT_IMG", $lng->txt(
"obj_".$this->lm_obj->getType()));
75 $tpl->parseCurrentBlock();
78 $tpl->setCurrentBlock(
"link");
81 if ($this->lm_obj->getType() ==
"lm")
83 $this->ctrl->setParameterByClass(
"ilObjLearningModuleGUI",
85 $link = $this->ctrl->getLinkTargetByClass(
"ilObjLearningModuleGUI",
90 $this->ctrl->setParameterByClass(
"ilObjDlBookGUI",
92 $link = $this->ctrl->getLinkTargetByClass(
"ilObjDlBookGUI",
95 $tpl->setVariable(
"LINK_TARGET", $link);
97 $tpl->setVariable(
"TARGET",
" target=\"".$this->frame_target.
"\"");
98 $tpl->parseCurrentBlock();
103 $tpl->touchBlock(
"element");
115 $this->lm_obj->isActiveNumbering());
143 $this->ctrl->setParameterByClass(
"ilLMPageObjectGUI",
"obj_id", $a_node_id);
144 return $this->ctrl->getLinkTargetByClass(
"ilLMPageObjectGUI",
145 "edit", array($this->gui_class));
149 $this->ctrl->setParameterByClass(
"ilStructureObjectGUI",
"obj_id", $a_node_id);
150 return $this->ctrl->getLinkTargetByClass(
"ilStructureObjectGUI",
151 "view", array($this->gui_class));
160 function getImage($a_name, $a_type =
"", $a_id =
"")
162 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
166 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
169 $lm_set->get(
"time_scheduled_page_activation"));
172 $img_sc = ($lm_set->get(
"time_scheduled_page_activation") &&
177 $a_name =
"icon_pg".$img_sc.
"_s.gif";
181 $a_name =
"icon_pg_d".$img_sc.
"_s.gif";
185 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
187 $this->lm_obj->getType());
190 $a_name =
"icon_pg_del".$img_sc.
"_s.gif";
204 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
208 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
211 $lm_set->get(
"time_scheduled_page_activation"));
215 return $lng->txt(
"cont_page_deactivated");
219 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
221 $this->lm_obj->getType());
224 return $lng->txt(
"cont_page_deactivated_elements");
228 return $a_default_text;
236 if (in_array($a_obj_id, $this->force_open_path))