3declare(strict_types=1);
21use Sabre\DAV\Exception\Forbidden;
41 throw new Forbidden(
"Permission denied");
44 $parent = $this->tree->getParentId(
$ref_id);
45 $this->repository_util->deleteObjects($parent, [
$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);
static getValidFilename(string $a_filename)
static _lookupObjectId(int $ref_id)
static _lookupType(int $id, bool $reference=false)
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
static _lookupTitle(int $obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getFilenameWithSanitizedFileExtension(int $obj_id)
updateLocksAfterResettingObject(int $old_obj_id, int $new_obj_id)
getRawObjectTitleFromObjId(int $obj_id)
getObjectTitleFromObjId(int $obj_id, bool $escape_forbidden_fileextension=false)
objectWithRefIdExists(int $ref_id)
getObjectTitleFromRefId(int $ref_id, bool $escape_forbidden_fileextension=false)
ilRepUtil $repository_util
getObjectTypeFromObjId(int $obj_id)
checkAccess(string $permission, int $ref_id)
checkCreateAccessForType(int $ref_id, string $type)
getParentOfRefId(int $ref_id)
getObjectTypeFromRefId(int $ref_id)
ilWebDAVLocksRepository $locks_repository
getChildrenOfRefId(int $ref_id)
deleteObject(int $ref_id)
getObjectIdFromRefId(int $ref_id)
__construct(ilAccessHandler $access, ilTree $tree, ilRepUtil $repository_util, ilWebDAVLocksRepository $locks_repository)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...