19declare(strict_types=1);
39 $new_ref_id = $object->createReference();
41 $object->putInTree($container_ref_id);
42 $object->setPermissions($container_ref_id);
51 if (!$this->tree->isDeleted(
$ref_id)) {
74 return $this->tree->isGrandChild($container_ref_id,
$ref_id);
84 $other_references_count = 0;
86 if ($other_ref_id ===
$ref_id) {
92 $other_references_count++;
94 return $other_references_count === 0;
Class ilObjectFactory This class offers methods to get instances of the type-specific object classes ...
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
Class ilObject Basic functions for all objects.
static _lookupType(int $id, bool $reference=false)
static _getAllReferences(int $id)
get all reference ids for object ID
static _isInTrash(int $ref_id)
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
static _lookupObjId(int $ref_id)
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...