19declare(strict_types=1);
36 $this->lpstatus = $lp_status_wrapper;
44 if ($lso_id !==
null) {
45 $usr_id = $parameter[
'usr_id'];
46 $this->lpstatus::_updateStatus($lso_id, $usr_id);
56 if (!array_key_exists($child_ref_id, $this->cached_parent_lso)) {
59 return $this->cached_parent_lso[$child_ref_id];
64 $parent_nd = $this->tree->getParentNodeData($child_ref_id);
65 if (isset($parent_nd[
'type']) && $parent_nd[
'type'] ===
'lso') {
66 return (
int) $parent_nd[
'obj_id'];
76 if (!array_key_exists($triggerer_obj_id, $this->cached_refs_for_obj)) {
79 return $this->cached_refs_for_obj[$triggerer_obj_id];
Class ilLPStatusWrapper This class is wrapper for all ilLPStatus classes.
__construct(ilTree $tree, ilLPStatusWrapper $lp_status_wrapper)
getParentLSOObjId(int $child_ref_id)
get the LSO up from $child_ref_if
ilLPStatusWrapper $lpstatus
getRefIdsOfObjId(int $triggerer_obj_id)
getParentLSOIdFromTree(int $child_ref_id)
array $cached_refs_for_obj
updateLPForChildEvent(array $parameter)
static _getAllReferences(int $id)
get all reference ids for object ID
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...