4 require_once(
"./Modules/LearningModule/classes/class.ilLMExplorer.php");
5 require_once(
"./Modules/LearningModule/classes/class.ilStructureObject.php");
27 $this->offline =
false;
28 $this->force_open_path = array();
38 $this->offline = $a_offline;
55 $this->force_open_path = $a_path;
67 $this->lm_obj->isActiveNumbering());
70 if ($this->lm_obj->getTOCMode() ==
"chapters" || $a_type !=
"pg")
79 $this->lm_obj->getPageHeader(), $this->lm_obj->isActiveNumbering(),
80 $this->lm_set->get(
"time_scheduled_page_activation"),
true);
89 function getImage($a_name, $a_type =
"", $a_id =
"")
91 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
95 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
98 $lm_set->get(
"time_scheduled_page_activation"));
101 $img_sc = ($lm_set->get(
"time_scheduled_page_activation") &&
106 $a_name =
"icon_pg".$img_sc.
"_s.png";
110 $a_name =
"icon_pg_d".$img_sc.
"_s.png";
114 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
116 $this->lm_obj->getType());
119 $a_name =
"icon_pg_del".$img_sc.
"_s.png";
131 $orig_node_id = $a_node_id;
137 $a_node = $this->tree->fetchSuccessorNode($a_node_id,
"pg");
138 $a_node_id = $a_node[
"child"];
150 $a_node = $this->tree->fetchSuccessorNode($a_node_id,
"pg");
151 $a_node_id = $a_node[
"child"];
152 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
154 $this->lm_set->get(
"time_scheduled_page_activation"));
156 if ($a_node_id > 0 && !$active)
171 $path = $this->tree->getPathId($a_node_id);
172 if (!in_array($orig_node_id,
$path))
183 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
184 include_once
'Services/Payment/classes/class.ilPaymentObject.php';
185 if (($ilUser->getId() == ANONYMOUS_USER_ID ||
209 $a_node_id = $this->tree->getRootId();
217 $a_node = $this->tree->fetchSuccessorNode($a_node_id,
"pg");
218 $a_node_id = $a_node[
"child"];
219 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
221 $this->lm_set->get(
"time_scheduled_page_activation"));
223 if ($a_node_id > 0 && !$active)
233 if (!$this->lm_obj->cleanFrames())
235 return "frame_".$a_node_id.
"_maincontent.html";
239 return "lm_pg_".$a_node_id.
".html";
255 if (in_array($a_obj_id, $this->force_open_path))
265 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
267 $this->lm_set->get(
"time_scheduled_page_activation"));
269 if(!$active && $a_type ==
"pg")
272 if ($act_data[
"show_activation_info"] &&