4 include_once(
"./Services/UIComponent/Explorer2/classes/class.ilTreeExplorerGUI.php");
5 include_once(
"./Modules/LearningModule/classes/class.ilStructureObject.php");
6 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
37 $this->
user = $DIC->user();
40 include_once(
"./Modules/LearningModule/classes/class.ilLMTree.php");
49 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
52 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
64 parent::__construct($a_id, $a_parent_obj, $a_parent_cmd,
$tree);
70 if ((
int)
$_GET[
"obj_id"] > 0) {
95 return $this->lm->getTitle();
104 $this->lm->isActiveNumbering(),
120 if ($a_node[
"child"] ==
$_GET[
"obj_id"] ||
138 if ($this->lp_cache[$this->lm->getId()] === null) {
139 $this->lp_cache[$this->lm->getId()] =
false;
141 include_once
'./Services/Tracking/classes/class.ilLearningProgressAccess.php';
145 include_once
'./Services/Object/classes/class.ilObjectLP.php';
149 include_once
"Services/Tracking/classes/class.ilLPStatusFactory.php";
151 $info = $class::_getStatusInfo($this->lm->getId());
155 if (is_array(
$info[
"items"])) {
156 foreach (
$info[
"items"] as $item_id) {
158 if (is_array(
$info[
"in_progress"][$item_id]) &&
159 in_array(
$ilUser->getId(),
$info[
"in_progress"][$item_id])) {
161 } elseif (is_array(
$info[
"completed"][$item_id]) &&
162 in_array(
$ilUser->getId(),
$info[
"completed"][$item_id])) {
165 $this->lp_cache[$this->lm->getId()][$item_id] =$status;
170 include_once
'./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php';
173 if (is_array($this->lp_cache[$this->lm->getId()]) &&
174 isset($this->lp_cache[$this->lm->getId()][$a_id])) {
const LP_STATUS_COMPLETED_NUM
static _getImagePathForStatus($a_status)
Get image path for status.
beforeRendering()
Before rendering.
setSkipRootNode($a_val)
Set skip root node.
const LP_STATUS_IN_PROGRESS_NUM
const LP_MODE_COLLECTION_MANUAL
setPathOpen($a_id)
Set node path to be opened.
const LP_MODE_COLLECTION_TLT
static _getClassById($a_obj_id, $a_mode=null)
isNodeHighlighted($a_node)
Is node highlighted?
setPreloadChilds($a_val)
Set preload childs.
static _getPresentationTitle( $a_node, $a_mode=IL_PAGE_TITLE, $a_include_numbers=false, $a_time_scheduled_activation=false, $a_force_content=false, $a_lm_id=0, $a_lang="-")
Get affective title.
static checkAccess($a_ref_id, $a_allow_only_read=true)
check access to learning progress
checkLPIcon($a_id)
Check learning progress icon.
static getInstance($a_tree_id)
Get Instance.
static preloadDataByLM($a_lm_id)
Preload data records by lm.
LM editor explorer GUI class.
getNodeId($a_node)
Get id for node.
getOfflineMode()
Get offline mode.
const LP_STATUS_NOT_ATTEMPTED_NUM
getRootNode()
Get root node.
Explorer class that works on tree objects (Services/Tree)
static preloadActivationDataByParentId($a_parent_id)
Preload activation data by Parent Id.
__construct($a_parent_obj, $a_parent_cmd, ilObjContentObject $a_lm, $a_id="")
Constructor.
Class ilObjContentObject.
getNodeContent($a_node)
Get node content.
static getInstance($a_obj_id)