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);
72 if ((
int)
$_GET[
"obj_id"] > 0) {
83 $this->ctrl->setParameter($this->parent_obj,
"obj_id",
$_GET[
"obj_id"]);
98 return $this->lm->getTitle();
107 $this->lm->isActiveNumbering(),
123 if ($a_node[
"child"] ==
$_GET[
"obj_id"] ||
141 if ($this->lp_cache[$this->lm->getId()] === null) {
142 $this->lp_cache[$this->lm->getId()] =
false;
144 include_once
'./Services/Tracking/classes/class.ilLearningProgressAccess.php';
148 include_once
'./Services/Object/classes/class.ilObjectLP.php';
152 include_once
"Services/Tracking/classes/class.ilLPStatusFactory.php";
154 $info = $class::_getStatusInfo($this->lm->getId());
158 if (is_array(
$info[
"items"])) {
159 foreach (
$info[
"items"] as $item_id) {
161 if (is_array(
$info[
"in_progress"][$item_id]) &&
162 in_array(
$ilUser->getId(),
$info[
"in_progress"][$item_id])) {
164 } elseif (is_array(
$info[
"completed"][$item_id]) &&
165 in_array(
$ilUser->getId(),
$info[
"completed"][$item_id])) {
168 $this->lp_cache[$this->lm->getId()][$item_id] = $status;
173 include_once
'./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php';
176 if (is_array($this->lp_cache[$this->lm->getId()]) &&
177 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.
for($i=1; $i<=count($kw_cases_sel); $i+=1) $lang
__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)