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"));
99 $orig_node_id = $a_node_id;
105 $a_node = $this->tree->fetchSuccessorNode($a_node_id,
"pg");
106 $a_node_id = $a_node[
"child"];
118 $a_node = $this->tree->fetchSuccessorNode($a_node_id,
"pg");
119 $a_node_id = $a_node[
"child"];
120 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
122 $this->lm_set->get(
"time_scheduled_page_activation"));
124 if ($a_node_id > 0 && !$active)
139 $path = $this->tree->getPathId($a_node_id);
140 if (!in_array($orig_node_id,
$path))
151 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
152 include_once
'Services/Payment/classes/class.ilPaymentObject.php';
153 if (($ilUser->getId() == ANONYMOUS_USER_ID ||
177 $a_node_id = $this->tree->getRootId();
185 $a_node = $this->tree->fetchSuccessorNode($a_node_id,
"pg");
186 $a_node_id = $a_node[
"child"];
187 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
189 $this->lm_set->get(
"time_scheduled_page_activation"));
191 if ($a_node_id > 0 && !$active)
201 if (!$this->lm_obj->cleanFrames())
203 return "frame_".$a_node_id.
"_maincontent.html";
207 return "lm_pg_".$a_node_id.
".html";
223 if (in_array($a_obj_id, $this->force_open_path))
233 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
235 $this->lm_set->get(
"time_scheduled_page_activation"));
237 if(!$active && $a_type ==
"pg")