24 require_once(
"./Modules/LearningModule/classes/class.ilLMExplorer.php");
25 require_once(
"./Modules/LearningModule/classes/class.ilStructureObject.php");
55 parent::ilLMExplorer($a_target, $a_lm_obj, $a_lang);
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(),
false, $this->lm_obj->getId(),
$this->lang).$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"),
true, $this->lm_obj->getId(),
$this->lang).$access_str;
156 $showViewInFrameset =
true;
159 $this->export_format ==
"scorm")
181 return parent::buildLinkTarget($a_node_id, $a_type);
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(
"./Modules/LearningModule/classes/class.ilLMPage.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(
"./Modules/LearningModule/classes/class.ilLMPage.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 =
"")
305 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
309 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
312 $lm_set->get(
"time_scheduled_page_activation"));
315 $img_sc = (
$lm_set->get(
"time_scheduled_page_activation") &&
320 $a_name =
"icon_pg".$img_sc.
"_s.png";
324 $a_name =
"icon_pg_d".$img_sc.
"_s.png";
328 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
330 $this->lm_obj->getType());
333 $a_name =
"icon_pg_del".$img_sc.
"_s.png";
357 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
359 $this->lm_set->get(
"time_scheduled_page_activation"));
361 if(!$active && $a_type ==
"pg")
364 if ($act_data[
"show_activation_info"] &&
buildFrameTarget($a_type, $a_child=0, $a_obj_id=0)
get target frame
_checkPreconditionsOfPage($cont_ref_id, $cont_obj_id, $page_id)
checks wether the preconditions of a page are fulfilled or not
setFilterMode($a_mode=IL_FM_NEGATIVE)
set filter mode
static _getPresentationTitle($a_st_id, $a_include_numbers=false, $a_time_scheduled_activation=false, $a_lm_id=0, $a_lang="-")
get presentation title
static _requiresPurchaseToAccess($a_ref_id, $a_purchasetype='')
this function should be used by all buyable repository objects !!
buildLinkTarget($a_node_id, $a_type)
build link target
static now()
Return current timestamp in Y-m-d H:i:s format.
_lookupActivationData($a_id, $a_parent_type, $a_lang="-")
Lookup activation data.
setFiltered($a_bool)
active/deactivate the filter public
getImage($a_name, $a_type="", $a_id="")
get image path (may be overwritten by derived classes)
static _lookupActive($a_id, $a_parent_type, $a_check_scheduled_activation=false, $a_lang="-")
lookup activation status
forceExpanded($a_obj_id)
force expansion of node
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static _lookupObjId($a_id)
buildTitle($a_title, $a_id, $a_type)
standard implementation for title, maybe overwritten by derived classes
isVisible($a_id, $a_type)
static getExportId($a_lm_id, $a_lmobj_id, $a_type="pg")
Get export ID.
setFrameTarget($a_target)
set target frame or not frame?
offlineMode()
get offline mode
static _lookupContainsDeactivatedElements($a_id, $a_parent_type, $a_lang="-")
lookup whether page contains deactivated elements
static _isScheduledActivation($a_id, $a_parent_type, $a_lang="-")
Check whether page is activated by time schedule.
setOfflineMode($a_offline=true)
set offline mode
isClickable($a_type, $a_node_id)
static _getPresentationTitle($a_pg_id, $a_mode=IL_CHAPTER_TITLE, $a_include_numbers=false, $a_time_scheduled_activation=false, $a_force_content=false, $a_lm_id=0, $a_lang="-")
presentation title doesn't have to be page title, it may be chapter title + page title or chapter tit...
setSessionExpandVariable($a_var_name="expand")
set name of expand session variable
addFilter($a_item)
adds item to the filter public
static _isPagePublic($a_node_id, $a_check_public_mode=false)
ilTableOfContentsExplorer($a_target, &$a_lm_obj, $a_export_format="", $a_lang="-")
Constructor public.