19declare(strict_types=0);
30 if (!isset(self::$possible_items[$a_ref_id])) {
37 $tree->setTableNames(
'lm_tree',
'lm_data');
38 $tree->setTreeTablePK(
"lm_id");
39 foreach ($tree->getChilds($tree->readRootId()) as $child) {
40 if ($child[
"type"] ==
"st") {
46 $items[$child[
"obj_id"]] = $child;
50 self::$possible_items[$a_ref_id] =
$items;
53 return self::$possible_items[$a_ref_id];
65 $tmp[
'id'] = $item[
'obj_id'];
67 $tmp[
'title'] = $item[
'title'];
68 $tmp[
'type'] = $item[
'type'];
72 $tmp[
'url'] = ilLink::_getLink(
76 $tmp[
'id'] .
'_' . $a_parent_ref_id
80 $tmp[
'tlt'] = $item[
'tlt'];
getTableGUIData(int $a_parent_ref_id)
getPossibleItems(int $a_ref_id)
static array $possible_items
isAssignedEntry(int $a_item_id)
const int LP_MODE_COLLECTION_TLT
static _getTypicalLearningTime(string $type, int $obj_id, int $sub_id=0)
static _lookupObjectId(int $ref_id)
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...