ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
FileReadAccess.php
Go to the documentation of this file.
1<?php
2
4
8
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
An exception for terminatinating execution or to throw for unit testing.
Class DataSize.
Definition: DataSize.php:16
setVisibility(string $path, string $visibility)
Sets the visibility for a file.
read(string $path)
Reads a file content to a string.
has(string $path)
Checks whether a file exists.
getSize(string $path, int $fileSizeUnit)
Get the size of a file.
getVisibility(string $path)
Get the file visibility.
getMimeType(string $path)
Get a files mime-type.
getTimestamp(string $path)
Get the timestamp of the file.