19 declare(strict_types=1);
37 throw new Forbidden(
"Permission denied");
40 $parent = $this->tree->getParentId($ref_id);
41 $this->repository_util->deleteObjects($parent, [$ref_id]);
46 return $this->
access->checkAccess($permission,
'', $ref_id);
51 return $this->
access->checkAccess(
'create',
'', $ref_id, $type);
83 return $escaped_title;
93 return $this->tree->getParentId($ref_id);
121 $this->tree->getChildIds($ref_id)
127 $this->locks_repository->updateLocks($old_obj_id, $new_obj_id);
132 return $this->file_info_repository->getByObjectId($obj_id);
137 return $this->locks_repository;
getObjectTypeFromRefId(int $ref_id)
getRawObjectTitleFromObjId(int $obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getParentOfRefId(int $ref_id)
static getValidFilename(string $a_filename)
getObjectIdFromRefId(int $ref_id)
deleteObject(int $ref_id)
getChildrenOfRefId(int $ref_id)
checkAccess(string $permission, int $ref_id)
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
updateLocksAfterResettingObject(int $old_obj_id, int $new_obj_id)
static _lookupTitle(int $obj_id)
getObjectTitleFromRefId(int $ref_id, bool $escape_forbidden_fileextension=false)
static _lookupObjectId(int $ref_id)
getObjectTitleFromObjId(int $obj_id, bool $escape_forbidden_fileextension=false)
getObjectTypeFromObjId(int $obj_id)
checkCreateAccessForType(int $ref_id, string $type)
getFilenameWithSanitizedFileExtension(int $obj_id)
objectWithRefIdExists(int $ref_id)
__construct(protected ilAccessHandler $access, protected ilTree $tree, protected ilRepUtil $repository_util, protected ilWebDAVLocksRepository $locks_repository, protected ilObjFileInfoRepository $file_info_repository)
static _lookupType(int $id, bool $reference=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...