3declare(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));
 
An exception for terminatinating execution or to throw for unit testing.
isExistingObject(int $ref_id)
getInstanceByObjId(int $obj_id)
getInstanceByRefId(int $ref_id)
handleObjectDeletion(array $parameter)
Find out, if a subobject is about to be deleted.
getRefIdsOfObjId(int $triggerer_obj_id)
__construct(ilTree $tree)
handleParticipantDeletion(int $obj_id, int $usr_id)
getParentLSOInfo(int $child_ref_id)
get the LSO up from $child_ref_if
deleteLSOItem(int $obj_ref_id, int $parent_lso_ref_id)
handleObjectToTrash(array $parameter)
Class ilObjLearningSequence.
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
Class ilObject Basic functions for all objects.
static _getAllReferences($a_id)
get all reference ids of object
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...