ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
FileReadAccess.php
Go to the documentation of this file.
1<?php
2
20
24
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}
This class provides the data size with additional information to remove the work to calculate the siz...
Definition: DataSize.php:31
Indicates that a file is missing or not found.
Indicates general problems with the input or output operations.
Definition: IOException.php:28
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.
getVisibility(string $path)
Get the file visibility.
getMimeType(string $path)
Get a files mime-type.
getSize(string $path, int $unit)
Get the size of a file.
getTimestamp(string $path)
Get the timestamp of the file.
$path
Definition: ltiservices.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...