24 require_once(
"./Modules/LearningModule/classes/class.ilLMExplorer.php");
25 require_once(
"./Modules/LearningModule/classes/class.ilStructureObject.php");
57 $this->export_format = $a_export_format;
58 $this->lm_obj =& $a_lm_obj;
62 if ($a_lm_obj->getTOCMode() ==
"pages")
73 $showViewInFrameset =
true;
75 if ($showViewInFrameset)
91 $this->offline = $a_offline;
95 if ($this->export_format ==
"scorm")
118 include_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
123 $access_str =
" (".$lng->txt(
"cont_no_access").
")";
129 $this->lm_obj->isActiveNumbering()).$access_str;
132 if ($this->lm_obj->getTOCMode() ==
"chapters" || $a_type !=
"pg")
134 return $a_title.$access_str;
141 $this->lm_obj->getPageHeader(), $this->lm_obj->isActiveNumbering(),
142 $this->lm_set->get(
"time_scheduled_page_activation")).$access_str;
156 $showViewInFrameset =
true;
159 $this->export_format ==
"scorm")
187 $a_node_id = $this->tree->getRootId();
195 $a_node = $this->tree->fetchSuccessorNode($a_node_id,
"pg");
196 $a_node_id = $a_node[
"child"];
197 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
199 $this->lm_set->get(
"time_scheduled_page_activation"));
200 if ($a_node_id > 0 && !$active)
213 return "lm_pg_".$nid.
".html";
217 return "lm_pg_".$a_node_id.
".html";
226 $orig_node_id = $a_node_id;
232 $a_node = $this->tree->fetchSuccessorNode($a_node_id,
"pg");
233 $a_node_id = $a_node[
"child"];
245 $a_node = $this->tree->fetchSuccessorNode($a_node_id,
"pg");
246 $a_node_id = $a_node[
"child"];
247 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
249 $this->lm_set->get(
"time_scheduled_page_activation"));
250 if ($a_node_id > 0 && !$active)
265 $path = $this->tree->getPathId($a_node_id);
266 if (!in_array($orig_node_id,
$path))
277 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
278 include_once
'Services/Payment/classes/class.ilPaymentObject.php';
279 if (($ilUser->getId() == ANONYMOUS_USER_ID ||
315 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
317 $this->lm_set->get(
"time_scheduled_page_activation"));
319 if(!$active && $a_type ==
"pg")