19 declare(strict_types=1);
33 $ilDB = $DIC->database();
34 $tree = $DIC->repositoryTree();
35 $access = $DIC->access();
38 $query =
"SELECT target_obj_id FROM container_reference " .
39 "WHERE obj_id = " .
$ilDB->quote($obj_id,
'integer') .
" ";
43 $target_id = (
int) $row->target_obj_id;
46 $target_ref_id = current($target_ref_ids);
48 !$tree->isDeleted($target_ref_id) &&
49 $access->checkAccess(
'read',
'', $target_ref_id);
static _getAllReferences(int $id)
get all reference ids for object ID
static _lookupObjId(int $ref_id)
static _isAccessible(int $a_ref_id)
Check if target is accessible and not deleted.