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();
29 parent::ilLMExplorer($a_target, $a_lm_obj, $a_lang);
38 $this->offline = $a_offline;
55 $this->force_open_path = $a_path;
66 $this->lm_obj->isActiveNumbering(),
false, $this->lm_obj->getId(),
$this->lang);
69 if ($this->lm_obj->getTOCMode() ==
"chapters" || $a_type !=
"pg")
78 $this->lm_obj->getPageHeader(), $this->lm_obj->isActiveNumbering(),
79 $this->lm_set->get(
"time_scheduled_page_activation"),
true, $this->lm_obj->getId(),
$this->lang);
88 function getImage($a_name, $a_type =
"", $a_id =
"")
100 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
104 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
107 $lm_set->get(
"time_scheduled_page_activation"));
110 $img_sc = (
$lm_set->get(
"time_scheduled_page_activation") &&
115 $a_name =
"icon_pg".$img_sc.
"_s.png";
119 $a_name =
"icon_pg_d".$img_sc.
"_s.png";
124 $this->lm_obj->getType());
127 $a_name =
"icon_pg_del".$img_sc.
"_s.png";
139 $orig_node_id = $a_node_id;
145 $a_node = $this->tree->fetchSuccessorNode($a_node_id,
"pg");
146 $a_node_id = $a_node[
"child"];
158 $a_node = $this->tree->fetchSuccessorNode($a_node_id,
"pg");
159 $a_node_id = $a_node[
"child"];
160 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
162 $this->lm_set->get(
"time_scheduled_page_activation"));
164 if ($a_node_id > 0 && !$active)
179 $path = $this->tree->getPathId($a_node_id);
180 if (!in_array($orig_node_id,
$path))
191 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
192 include_once
'Services/Payment/classes/class.ilPaymentObject.php';
193 if (($ilUser->getId() == ANONYMOUS_USER_ID ||
211 return parent::buildLinkTarget($a_node_id, $a_type);
217 $a_node_id = $this->tree->getRootId();
225 $a_node = $this->tree->fetchSuccessorNode($a_node_id,
"pg");
226 $a_node_id = $a_node[
"child"];
227 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
229 $this->lm_set->get(
"time_scheduled_page_activation"));
231 if ($a_node_id > 0 && !$active)
241 if (!$this->lm_obj->cleanFrames())
243 return "frame_".$a_node_id.
"_maincontent.html";
247 return "lm_pg_".$a_node_id.
".html";
263 if (in_array($a_obj_id, $this->force_open_path))
273 include_once(
"./Modules/LearningModule/classes/class.ilLMPage.php");
275 $this->lm_set->get(
"time_scheduled_page_activation"));
277 if(!$active && $a_type ==
"pg")
280 if ($act_data[
"show_activation_info"] &&
ilLMTOCExplorer($a_target, $a_lm_obj, $a_lang="-")
Constructor public.
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 !!
isVisible($a_id, $a_type)
static now()
Return current timestamp in Y-m-d H:i:s format.
setOfflineMode($a_offline=true)
set offline mode
_lookupActivationData($a_id, $a_parent_type, $a_lang="-")
Lookup activation data.
isClickable($a_type, $a_node_id)
buildTitle($a_title, $a_id, $a_type)
standard implementation for title, maybe overwritten by derived classes
static _lookupActive($a_id, $a_parent_type, $a_check_scheduled_activation=false, $a_lang="-")
lookup activation status
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
setForceOpenPath($a_path)
set force open path
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.
getImage($a_name, $a_type="", $a_id="")
get image path (may be overwritten by derived classes)
buildLinkTarget($a_node_id, $a_type)
build link target
offlineMode()
get offline mode
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...
forceExpanded($a_obj_id)
force expansion of node
static _isPagePublic($a_node_id, $a_check_public_mode=false)