| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
 Inheritance diagram for ILIAS\Filesystem\Provider\FileReadAccess:
 Collaboration diagram for ILIAS\Filesystem\Provider\FileReadAccess:Public Member Functions | |
| read (string $path) | |
| Reads a file content to a string.  More... | |
| has (string $path) | |
| Checks whether a file exists.  More... | |
| getMimeType (string $path) | |
| Get a files mime-type.  More... | |
| getTimestamp (string $path) | |
| Get the timestamp of the file.  More... | |
| getSize (string $path, int $unit) | |
| Get the size of a file.  More... | |
| setVisibility (string $path, string $visibility) | |
| Sets the visibility for a file.  More... | |
| getVisibility (string $path) | |
| Get the file visibility.  More... | |
Definition at line 29 of file FileReadAccess.php.
| ILIAS\Filesystem\Provider\FileReadAccess::getMimeType | ( | string | $path | ) | 
Get a files mime-type.
| string | $path | The file which should be used to get the mime-type. | 
| FileNotFoundException | If the file is not found. | 
| IOException | If the mime-type could not be determined. | 
Implemented in ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, ILIAS\Filesystem\FilesystemFacade, ILIAS\Filesystem\Decorator\ReadOnlyDecorator, and ILIAS\Filesystem\Provider\FlySystem\FlySystemFileAccess.
| ILIAS\Filesystem\Provider\FileReadAccess::getSize | ( | string | $path, | 
| int | $unit | ||
| ) | 
Get the size of a file.
The file size units are provided by the DataSize class.
| string | $path | The path to the file. | 
| int | $unit | The unit of the file size, which are defined in the DataSize class. | 
| IOException | Thrown if the file is not accessible or the underlying filesystem adapter failed. | 
| FileNotFoundException | Thrown if the specified file was not found. | 
Implemented in ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, ILIAS\Filesystem\FilesystemFacade, ILIAS\Filesystem\Decorator\ReadOnlyDecorator, and ILIAS\Filesystem\Provider\FlySystem\FlySystemFileAccess.
| ILIAS\Filesystem\Provider\FileReadAccess::getTimestamp | ( | string | $path | ) | 
Get the timestamp of the file.
| string | $path | The path to the file. | 
| FileNotFoundException | If the file is not found. | 
| IOException | If the file can not be red. | 
Implemented in ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, ILIAS\Filesystem\FilesystemFacade, ILIAS\Filesystem\Decorator\ReadOnlyDecorator, and ILIAS\Filesystem\Provider\FlySystem\FlySystemFileAccess.
| ILIAS\Filesystem\Provider\FileReadAccess::getVisibility | ( | string | $path | ) | 
Get the file visibility.
The file visibility could be 'public' or 'private'.
Please note that the Visibility interface defines two constants PUBLIC_ACCESS and PRIVATE_ACCESS to ease the development process.
| string | $path | The path to the file which should be used. | 
| FileNotFoundException | If the file could not be found. | 
Implemented in ILIAS\Filesystem\Provider\FlySystem\FlySystemFileAccess, ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, ILIAS\Filesystem\FilesystemFacade, and ILIAS\Filesystem\Decorator\ReadOnlyDecorator.
| ILIAS\Filesystem\Provider\FileReadAccess::has | ( | string | $path | ) | 
Checks whether a file exists.
| string | $path | The file path which should be checked. | 
Implemented in ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, ILIAS\Filesystem\FilesystemFacade, ILIAS\Filesystem\Decorator\ReadOnlyDecorator, and ILIAS\Filesystem\Provider\FlySystem\FlySystemFileAccess.
| ILIAS\Filesystem\Provider\FileReadAccess::read | ( | string | $path | ) | 
Reads a file content to a string.
| string | $path | The path to the file which should be read. | 
| FileNotFoundException | If the file doesn't exist. | 
| IOException | If the file could not be red. | 
Implemented in ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, ILIAS\Filesystem\FilesystemFacade, ILIAS\Filesystem\Decorator\ReadOnlyDecorator, and ILIAS\Filesystem\Provider\FlySystem\FlySystemFileAccess.
| ILIAS\Filesystem\Provider\FileReadAccess::setVisibility | ( | string | $path, | 
| string | $visibility | ||
| ) | 
Sets the visibility for a file.
Please note that the $visibility must 'public' or 'private'.
The Visibility interface provides two constants PUBLIC_ACCESS and PRIVATE_ACCESS. We strongly encourage the consumers of this API to use the constants.
| string | $path | The path to the file. | 
| string | $visibility | The new visibility for the given file. This value must be 'private' or 'public'. | 
Implemented in ILIAS\Filesystem\Decorator\FilesystemWhitelistDecorator, ILIAS\Filesystem\FilesystemFacade, ILIAS\Filesystem\Decorator\ReadOnlyDecorator, and ILIAS\Filesystem\Provider\FlySystem\FlySystemFileAccess.