5 require_once
"Services/Tracking/classes/collection/class.ilLPCollection.php";
22 if (!isset(self::$possible_items[$a_ref_id])) {
29 include_once
"Services/MetaData/classes/class.ilMDEducational.php";
31 $tree->setTableNames(
'lm_tree',
'lm_data');
32 $tree->setTreeTablePK(
"lm_id");
33 foreach (
$tree->getChilds(
$tree->readRootId()) as $child) {
34 if ($child[
"type"] ==
"st") {
36 $items[$child[
"obj_id"]] = $child;
40 self::$possible_items[$a_ref_id] =
$items;
43 return self::$possible_items[$a_ref_id];
56 include_once
'./Services/Link/classes/class.ilLink.php';
60 $tmp[
'id'] = $item[
'obj_id'];
62 $tmp[
'title'] = $item[
'title'];
63 $tmp[
'type'] = $item[
'type'];
67 $tmp[
'url'] =
ilLink::_getLink($a_parent_ref_id, $parent_type, null,
"_" . $tmp[
'id']);
70 $tmp[
'tlt'] = $item[
'tlt'];
static _getTypicalLearningTimeSeconds($a_rbac_id, $a_obj_id=0)
getTableGUIData($a_parent_ref_id)
LP collection of learning module chapters.
const LP_MODE_COLLECTION_TLT
static _lookupObjectId($a_ref_id)
lookup object id
getPossibleItems($a_ref_id)
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
static _lookupType($a_id, $a_reference=false)
lookup object type
LP collection base class.
isAssignedEntry($a_item_id)
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")