ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
FileReadAccess.php
Go to the documentation of this file.
1 <?php
2 
4 
8 
18 interface FileReadAccess
19 {
20 
30  public function read(string $path) : string;
31 
39  public function has(string $path) : bool;
40 
48  public function getMimeType(string $path) : string;
49 
59  public function getTimestamp(string $path) : \DateTimeImmutable;
60 
73  public function getSize(string $path, int $fileSizeUnit) : DataSize;
74 
88  public function setVisibility(string $path, string $visibility) : bool;
89 
101  public function getVisibility(string $path) : string;
102 }
getVisibility(string $path)
Get the file visibility.
getSize(string $path, int $fileSizeUnit)
Get the size of a file.
Class DataSize.
Definition: DataSize.php:15
getTimestamp(string $path)
Get the timestamp of the file.
has(string $path)
Checks whether a file exists.
read(string $path)
Reads a file content to a string.
setVisibility(string $path, string $visibility)
Sets the visibility for a file.
getMimeType(string $path)
Get a files mime-type.
Interface FileReadAccess All readonly file operations of the filesystem service.