iStorage
MMO\edms\interfaces · 1 symbol · generated 5 Oct 2026
iStorage
iStorage.php:12Where the bytes of the files are kept, by key: a file only knows its key (File::$storageKey), never where the storage puts it. LocalStorage keeps them in a folder; another storage (S3...) implements the same methods.
- Namespace
MMO\edms\interfaces
Index
| delete($key) abstract | Forget the bytes of $key: nothing happens if there are none | |
| exists($key) abstract | ||
| keys() abstract | Every key kept, and when its bytes were written: what the garbage collector compares with the files. | |
| localFilename($key) abstract | ||
| open($key) abstract | ||
| put($key, $filename) abstract | Keep the local file $filename under $key: the file is moved, it is the storage's afterwards. | |
| size($key) abstract |
Methods7
delete($key)
abstractiStorage.php:30Forget the bytes of $key: nothing happens if there are none
exists($key)
abstractiStorage.php:32keys()
abstractiStorage.php:44Every key kept, and when its bytes were written: what the garbage collector compares with the files.
| returns | Generator | int> key => unix time |
localFilename($key)
abstractiStorage.php:38open($key)
abstractiStorage.php:27| $key | string | |
| returns | a stream to read the bytes of $key from, the caller closes it | |
| throws | if nothing is kept under $key |
put($key, $filename)
abstractiStorage.php:21Keep the local file $filename under $key: the file is moved, it is the storage's afterwards.