ILIAS
release_8 Revision v8.19
|
Class ilCountPDFPagesPreProcessors. More...
Public Member Functions | |
__construct () | |
process (FileStream $stream, Metadata $metadata) | |
This method gets invoked by the file upload service to process the file with the help of the processor. More... | |
Data Fields | |
const | PAGE_COUNT = 'page_count' |
Private Attributes | |
ilCountPDFPages | $page_counter |
Class ilCountPDFPagesPreProcessors.
Definition at line 30 of file class.ilCountPDFPagesPreProcessors.php.
ilCountPDFPagesPreProcessors::__construct | ( | ) |
Definition at line 35 of file class.ilCountPDFPagesPreProcessors.php.
ilCountPDFPagesPreProcessors::process | ( | FileStream | $stream, |
Metadata | $metadata | ||
) |
This method gets invoked by the file upload service to process the file with the help of the processor.
If the return value is REJECTED, no further invocations of processors are done for the rejected file.
If the processor fails or returns an unexpected value, the file gets automatically rejected because the file could be dangerous to ILIAS.
FileStream | $stream | The stream of the file. |
Metadata | $metadata | The meta data of the uploaded file. |
Implements ILIAS\FileUpload\Processor\PreProcessor.
Definition at line 40 of file class.ilCountPDFPagesPreProcessors.php.
References ILIAS\FileUpload\DTO\Metadata\additionalMetaData(), and ILIAS\FileUpload\DTO\Metadata\getMimeType().
|
private |
Definition at line 33 of file class.ilCountPDFPagesPreProcessors.php.
const ilCountPDFPagesPreProcessors::PAGE_COUNT = 'page_count' |
Definition at line 32 of file class.ilCountPDFPagesPreProcessors.php.
Referenced by ilObjFile\appendUpload(), and ilObjFile\replaceWithUpload().