3 declare(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];
getParentLSOObjId(int $child_ref_id)
get the LSO up from $child_ref_if
static _getAllReferences(int $id)
get all reference ids for object ID
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getParentLSOIdFromTree(int $child_ref_id)
getRefIdsOfObjId(int $triggerer_obj_id)
__construct(ilTree $tree, ilLPStatusWrapper $lp_status_wrapper)
updateLPForChildEvent(array $parameter)
array $cached_refs_for_obj
ilLPStatusWrapper $lpstatus
Class ilLPStatusWrapper This class is wrapper for all ilLPStatus classes.