ILIAS  release_7 Revision v7.30-3-g800a261c036
FileReadAccess.php
Go to the documentation of this file.
1<?php
2
4
8
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}
An exception for terminatinating execution or to throw for unit testing.
Class DataSize.
Definition: DataSize.php:16
Class FileNotFoundException Indicates that a file is missing or not found.
Class IOException Indicates general problems with the input or output operations.
Definition: IOException.php:13
Interface FileReadAccess All readonly file operations of the filesystem service.
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.