ILIAS  trunk Revision v11.0_alpha-1838-g59fc79e306b
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
FileReadAccess.php
Go to the documentation of this file.
1 <?php
2 
20 
24 
29 interface FileReadAccess
30 {
42  public function read(string $path): string;
43 
52  public function has(string $path): bool;
53 
64  public function getMimeType(string $path): string;
65 
77  public function getTimestamp(string $path): \DateTimeImmutable;
78 
92  public function getSize(string $path, int $unit): DataSize;
93 
109  public function setVisibility(string $path, string $visibility): bool;
110 
125  public function getVisibility(string $path): string;
126 }
getVisibility(string $path)
Get the file visibility.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This class provides the data size with additional information to remove the work to calculate the siz...
Definition: DataSize.php:30
getTimestamp(string $path)
Get the timestamp of the file.
$path
Definition: ltiservices.php:29
getSize(string $path, int $unit)
Get the size of a 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.