3 declare(strict_types=1);
28 $obj_deleted = $parameter[
'object'];
29 $obj_ref_id = (int) $obj_deleted->getRefId();
37 $this->
deleteLSOItem($obj_ref_id, (
int) $parent_lso[
'ref_id']);
46 $obj_ref_id = (int) $parameter[
'ref_id'];
47 $old_parent_ref_id = (int) $parameter[
'old_parent_ref_id'];
54 if ($old_parent_ref_id) {
61 if (empty($ref_id) || !$this->tree->isInTree($ref_id)) {
67 protected function deleteLSOItem(
int $obj_ref_id,
int $parent_lso_ref_id)
70 $lso->getStateDB()->deleteForItem(
79 $db = $lso->getStateDB();
80 $db->deleteFor($lso->getRefId(), [$usr_id]);
89 foreach ($this->tree->getPathFull($child_ref_id) as $hop) {
90 if ($hop[
'type'] ===
'lso') {
110 $ref_id = array_shift(array_keys($refs));
getInstanceByObjId(int $obj_id)
getRefIdsOfObjId(int $triggerer_obj_id)
getInstanceByRefId(int $ref_id)
getParentLSOInfo(int $child_ref_id)
get the LSO up from $child_ref_if
Class ilObjLearningSequence.
static _getAllReferences($a_id)
get all reference ids of object
handleObjectToTrash(array $parameter)
handleParticipantDeletion(int $obj_id, int $usr_id)
deleteLSOItem(int $obj_ref_id, int $parent_lso_ref_id)
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
handleObjectDeletion(array $parameter)
Find out, if a subobject is about to be deleted.
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
isExistingObject(int $ref_id)
__construct(ilTree $tree)