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 ||
293 function getImage($a_name, $a_type =
"", $a_id =
"")
295 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
299 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
302 $lm_set->get(
"time_scheduled_page_activation"));
305 $img_sc = ($lm_set->get(
"time_scheduled_page_activation") &&
310 $a_name =
"icon_pg".$img_sc.
"_s.png";
314 $a_name =
"icon_pg_d".$img_sc.
"_s.png";
318 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
320 $this->lm_obj->getType());
323 $a_name =
"icon_pg_del".$img_sc.
"_s.png";
347 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
349 $this->lm_set->get(
"time_scheduled_page_activation"));
351 if(!$active && $a_type ==
"pg")
354 if ($act_data[
"show_activation_info"] &&