ILIAS  release_8 Revision v8.24
StorageHandler.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
31
38{
42 public function getID(): string;
43
44 public function isPrimary(): bool;
45
47
48 public function has(ResourceIdentification $identification): bool;
49
50 public function getStream(Revision $revision): FileStream;
51
52 public function storeUpload(UploadedFileRevision $revision): bool;
53
54 public function storeStream(FileStreamRevision $revision): bool;
55
56 public function cloneRevision(CloneRevision $revision): bool;
57
61 public function deleteRevision(Revision $revision): void;
62
66 public function deleteResource(StorableResource $resource): void;
67
71 public function cleanUpContainer(StorableResource $resource): void;
72
76 public function getStorageLocationBasePath(): string;
77
81 public function getFullContainerPath(ResourceIdentification $identification): string;
82
86 public function getContainerPathWithoutBase(ResourceIdentification $identification): string;
87
93 public function getRevisionPath(Revision $revision): string;
94
95
99 public function movementImplementation(): string;
100}
storeUpload(UploadedFileRevision $revision)
deleteRevision(Revision $revision)
This only delets a revision of a Resource.
cleanUpContainer(StorableResource $resource)
This checks if there are empty directories in the filesystem which can be deleted.
getContainerPathWithoutBase(ResourceIdentification $identification)
This is only the path of a ResourceIdentification inside the StorageLocation base path.
deleteResource(StorableResource $resource)
This deleted the whole container of a resource.
getRevisionPath(Revision $revision)
This is the full path to a revision of a Resource, incl.
getStorageLocationBasePath()
This is the place in the filesystem where the containers (nested) get created.
has(ResourceIdentification $identification)
getFullContainerPath(ResourceIdentification $identification)
This is the full path to the container of a ResourceIdentification (incl.