ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
FileReadAccess.php
Go to the documentation of this file.
1 <?php
2 
4 
8 
22 interface FileReadAccess
23 {
24 
38  public function read(string $path) : string;
39 
40 
51  public function has(string $path) : bool;
52 
63  public function getMimeType(string $path) : string;
64 
65 
79  public function getTimestamp(string $path) : \DateTimeImmutable;
80 
81 
99  public function getSize(string $path, int $fileSizeUnit) : DataSize;
100 
118  public function setVisibility(string $path, string $visibility) : bool;
119 
120 
137  public function getVisibility(string $path) : string;
138 }
$path
Definition: aliased.php:25
getVisibility(string $path)
Get the file visibility.
getSize(string $path, int $fileSizeUnit)
Get the size of a file.
Exercise XML Parser which completes/updates a given file by an xml string.
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.