19 declare(strict_types=1);
35 $new_ref_id = $object->createReference();
37 $object->putInTree($container_ref_id);
38 $object->setPermissions($container_ref_id);
47 if ($this->tree->isDeleted($ref_id)) {
50 if ($this->tree->isGrandChild($container_ref_id, $ref_id)) {
61 if (!$this->tree->isDeleted(
$ref_id)) {
76 return \ilObject::_lookupType($ref_id,
true);
static _getAllReferences(int $id)
get all reference ids for object ID
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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