ILIAS  release_7 Revision v7.30-3-g800a261c036
StorageHandler.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
4
13
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}
An exception for terminatinating execution or to throw for unit testing.
Interface FileStream The base interface for all filesystem streams.
Definition: FileStream.php:18
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.