3 declare(strict_types=1);
41 throw new Forbidden(
"Permission denied");
44 $parent = $this->tree->getParentId($ref_id);
45 $this->repository_util->deleteObjects($parent, [$ref_id]);
50 return $this->
access->checkAccess($permission,
'', $ref_id);
55 return $this->
access->checkAccess(
'create',
'', $ref_id, $type);
89 return $escaped_title;
99 return $this->tree->getParentId($ref_id);
127 $this->tree->getChildIds($ref_id)
133 $this->locks_repository->updateLocks($old_obj_id, $new_obj_id);
__construct(ilAccessHandler $access, ilTree $tree, ilRepUtil $repository_util, ilWebDAVLocksRepository $locks_repository)
getObjectTypeFromRefId(int $ref_id)
getRawObjectTitleFromObjId(int $obj_id)
ilWebDAVLocksRepository $locks_repository
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getParentOfRefId(int $ref_id)
ilRepUtil $repository_util
static getValidFilename(string $a_filename)
getObjectIdFromRefId(int $ref_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
objectWithRefIdExists(int $ref_id)
static _lookupType(int $id, bool $reference=false)