ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct ($path, $type) | |
Metadata constructor. More... | |
getPath () | |
The path to the file or directory. More... | |
getType () | |
The type of the subject which can be FILE or DIRECTORY. More... | |
isDir () | |
The path is a directory. More... | |
isFile () | |
The path is a file. More... | |
Private Attributes | |
$path | |
$type | |
Class Metadata.
This class holds all default metadata send by the filesystem adapters. Metadata instances are immutable.
Definition at line 17 of file Metadata.php.
ILIAS\Filesystem\DTO\Metadata::__construct | ( | $path, | |
$type | |||
) |
Metadata constructor.
Creates a new instance of the Metadata.
Definition at line 45 of file Metadata.php.
References ILIAS\Filesystem\DTO\Metadata\$path, ILIAS\Filesystem\DTO\Metadata\$type, ILIAS\Filesystem\MetadataType\DIRECTORY, and ILIAS\Filesystem\MetadataType\FILE.
ILIAS\Filesystem\DTO\Metadata::getPath | ( | ) |
The path to the file or directory.
Definition at line 69 of file Metadata.php.
References ILIAS\Filesystem\DTO\Metadata\$path.
ILIAS\Filesystem\DTO\Metadata::getType | ( | ) |
The type of the subject which can be FILE or DIRECTORY.
Use isDir or isFile in consumer-code and do not compare yourself against MetadataType::DIRECTORY or MetadataType::FILE
Definition at line 87 of file Metadata.php.
References ILIAS\Filesystem\DTO\Metadata\$type.
Referenced by ILIAS\Filesystem\DTO\Metadata\isDir(), and ILIAS\Filesystem\DTO\Metadata\isFile().
ILIAS\Filesystem\DTO\Metadata::isDir | ( | ) |
The path is a directory.
Definition at line 99 of file Metadata.php.
References ILIAS\Filesystem\MetadataType\DIRECTORY, and ILIAS\Filesystem\DTO\Metadata\getType().
ILIAS\Filesystem\DTO\Metadata::isFile | ( | ) |
The path is a file.
Definition at line 111 of file Metadata.php.
References ILIAS\Filesystem\MetadataType\FILE, and ILIAS\Filesystem\DTO\Metadata\getType().
|
private |
Definition at line 23 of file Metadata.php.
Referenced by ILIAS\Filesystem\DTO\Metadata\__construct(), and ILIAS\Filesystem\DTO\Metadata\getPath().
|
private |
Definition at line 27 of file Metadata.php.
Referenced by ILIAS\Filesystem\DTO\Metadata\__construct(), and ILIAS\Filesystem\DTO\Metadata\getType().