ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
StorageHandler.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 
4 
13 
19 interface StorageHandler
20 {
21 
25  public function getID() : string;
26 
27  public function isPrimary() : bool;
28 
33 
38  public function has(ResourceIdentification $identification) : bool;
39 
44  public function getStream(Revision $revision) : FileStream;
45 
50  public function storeUpload(UploadedFileRevision $revision) : bool;
51 
56  public function storeStream(FileStreamRevision $revision) : bool;
57 
62  public function cloneRevision(CloneRevision $revision) : bool;
63 
68  public function deleteRevision(Revision $revision) : void;
69 
74  public function deleteResource(StorableResource $resource) : void;
75 
80  public function cleanUpContainer(StorableResource $resource) : void;
81 
86  public function getStorageLocationBasePath() : string;
87 
93  public function getFullContainerPath(ResourceIdentification $identification) : string;
94 
100  public function getContainerPathWithoutBase(ResourceIdentification $identification) : string;
101 
109  public function getRevisionPath(Revision $revision) : string;
110 
114  public function movementImplementation() : string;
115 }
getContainerPathWithoutBase(ResourceIdentification $identification)
This is only the path of a ResourceIdentification inside the StorageLocation base path...
getFullContainerPath(ResourceIdentification $identification)
This is the full path to the container of a ResourceIdentification (incl.
storeUpload(UploadedFileRevision $revision)
getRevisionPath(Revision $revision)
This is the full path to a revision of a Resource, incl.
cleanUpContainer(StorableResource $resource)
This checks if there are empty directories in the filesystem which can be deleted.
has(ResourceIdentification $identification)
deleteResource(StorableResource $resource)
This deleted the whole container of a resource.
getStorageLocationBasePath()
This is the place in the filesystem where the containers (nested) get created.
deleteRevision(Revision $revision)
This only delets a revision of a Resource.
Interface FileStream The base interface for all filesystem streams.
Definition: FileStream.php:17