ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($filename, $size, $mimeType) | |
Metadata constructor. More... | |
getFilename () | |
The filename supplied by the browser. More... | |
setFilename ($filename) | |
Overwrite the current filename. More... | |
getUploadSize () | |
This is always the original file size which was determined by the http service. More... | |
getMimeType () | |
Client supplied mime type of the uploaded. More... | |
setMimeType ($mimeType) | |
Overwrite the current mime type of the file. More... | |
additionalMetaData () | |
Provides a string map implementation which allows the processors to store additional values. More... | |
Private Attributes | |
$filename | |
$uploadSize | |
$mimeType | |
$additionalMetaData | |
Class Metadata.
The meta data class holds all the data which are passed to each processor. This class only purpose is to transport data.
Definition at line 21 of file Metadata.php.
ILIAS\FileUpload\DTO\Metadata::__construct | ( | $filename, | |
$size, | |||
$mimeType | |||
) |
Metadata constructor.
string | $filename | The filename of the uploaded file. |
int | $size | The original size of the uploaded file. |
string | $mimeType | The mime type of the uploaded file. |
Definition at line 53 of file Metadata.php.
References ILIAS\FileUpload\DTO\Metadata\$filename, ILIAS\FileUpload\DTO\Metadata\$mimeType, $size, and ILIAS\FileUpload\DTO\Metadata\additionalMetaData().
ILIAS\FileUpload\DTO\Metadata::additionalMetaData | ( | ) |
Provides a string map implementation which allows the processors to store additional values.
The string map implementation used by the meta data refuses to overwrite values.
Definition at line 149 of file Metadata.php.
References ILIAS\FileUpload\DTO\Metadata\$additionalMetaData.
Referenced by ILIAS\FileUpload\DTO\Metadata\__construct(), and ilCountPDFPagesPreProcessors\process().
ILIAS\FileUpload\DTO\Metadata::getFilename | ( | ) |
The filename supplied by the browser.
Please be aware of the fact that this value can be potentially unsafe.
Definition at line 73 of file Metadata.php.
References ILIAS\FileUpload\DTO\Metadata\$filename.
Referenced by ILIAS\FileUpload\Processor\FilenameSanitizerPreProcessor\process(), ILIAS\FileUpload\Processor\WhitelistExtensionPreProcessor\process(), ILIAS\FileUpload\Processor\BlacklistExtensionPreProcessor\process(), and ILIAS\FileUpload\FileUploadImpl\rejectFailedUpload().
ILIAS\FileUpload\DTO\Metadata::getMimeType | ( | ) |
Client supplied mime type of the uploaded.
This value must be threaded as unreliable.
Definition at line 118 of file Metadata.php.
References ILIAS\FileUpload\DTO\Metadata\$mimeType.
Referenced by ilCountPDFPagesPreProcessors\process(), ILIAS\FileUpload\Processor\BlacklistMimeTypePreProcessor\process(), ILIAS\FileUpload\Processor\WhitelistMimeTypePreProcessor\process(), and ILIAS\FileUpload\FileUploadImpl\rejectFailedUpload().
ILIAS\FileUpload\DTO\Metadata::getUploadSize | ( | ) |
This is always the original file size which was determined by the http service.
The current size is provided by the size method of the Stream passed to the processor. Please use the filesystem service to get the file size outside of the processors.
Definition at line 105 of file Metadata.php.
References ILIAS\FileUpload\DTO\Metadata\$uploadSize.
Referenced by ILIAS\FileUpload\FileUploadImpl\rejectFailedUpload().
ILIAS\FileUpload\DTO\Metadata::setFilename | ( | $filename | ) |
Overwrite the current filename.
string | $filename | The new filename. |
Definition at line 87 of file Metadata.php.
References ILIAS\FileUpload\DTO\Metadata\$filename.
Referenced by ILIAS\FileUpload\Processor\FilenameSanitizerPreProcessor\process().
ILIAS\FileUpload\DTO\Metadata::setMimeType | ( | $mimeType | ) |
Overwrite the current mime type of the file.
string | $mimeType | The new mime type if the file. |
Definition at line 132 of file Metadata.php.
References ILIAS\FileUpload\DTO\Metadata\$mimeType.
|
private |
Definition at line 39 of file Metadata.php.
Referenced by ILIAS\FileUpload\DTO\Metadata\additionalMetaData().
|
private |
Definition at line 27 of file Metadata.php.
Referenced by ILIAS\FileUpload\DTO\Metadata\__construct(), ILIAS\FileUpload\DTO\Metadata\getFilename(), and ILIAS\FileUpload\DTO\Metadata\setFilename().
|
private |
Definition at line 35 of file Metadata.php.
Referenced by ILIAS\FileUpload\DTO\Metadata\__construct(), ILIAS\FileUpload\DTO\Metadata\getMimeType(), and ILIAS\FileUpload\DTO\Metadata\setMimeType().
|
private |
Definition at line 31 of file Metadata.php.
Referenced by ILIAS\FileUpload\DTO\Metadata\getUploadSize().