ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ProcessingStatus. More...
Public Member Functions | |
__construct ($code, $reason) | |
ProcessingStatus constructor. More... | |
getCode () | |
getMessage () | |
Data Fields | |
const | OK = 1 |
Upload is ok. More... | |
const | REJECTED = 2 |
Upload got rejected by a processor. More... | |
Private Attributes | |
$code | |
$message | |
Class ProcessingStatus.
The class is used by the processors to give feedback to the UploadService about the validity of the current processed file. This class only purpose is to transport data.
Definition at line 20 of file ProcessingStatus.php.
ILIAS\FileUpload\DTO\ProcessingStatus::__construct | ( | $code, | |
$reason | |||
) |
ProcessingStatus constructor.
int | $code | The code OK or REJECTED. |
string | $reason | The message which should be set to make the rejection more understandable for other developers. |
Definition at line 53 of file ProcessingStatus.php.
References ILIAS\FileUpload\DTO\ProcessingStatus\$code.
ILIAS\FileUpload\DTO\ProcessingStatus::getCode | ( | ) |
Definition at line 71 of file ProcessingStatus.php.
References ILIAS\FileUpload\DTO\ProcessingStatus\$code.
ILIAS\FileUpload\DTO\ProcessingStatus::getMessage | ( | ) |
Definition at line 81 of file ProcessingStatus.php.
References ILIAS\FileUpload\DTO\ProcessingStatus\$message.
|
private |
Definition at line 34 of file ProcessingStatus.php.
Referenced by ILIAS\FileUpload\DTO\ProcessingStatus\__construct(), and ILIAS\FileUpload\DTO\ProcessingStatus\getCode().
|
private |
Definition at line 38 of file ProcessingStatus.php.
Referenced by ILIAS\FileUpload\DTO\ProcessingStatus\getMessage().
const ILIAS\FileUpload\DTO\ProcessingStatus::OK = 1 |
Upload is ok.
Definition at line 26 of file ProcessingStatus.php.
Referenced by ilChatroomAdminSmileyGUI\confirmedDeleteMultipleObject(), ilObjectTileImage\delete(), ilChatroomAdminSmileyGUI\deleteSmileyObject(), ilCertificateGUI\getEditorForm(), ilObjBibliographic\getFileDirectory(), ILIAS\FileUpload\Processor\FilenameSanitizerPreProcessor\process(), ILIAS\FileUpload\Processor\PreProcessorManagerImpl\process(), ILIAS\FileUpload\Processor\VirusScannerPreProcessor\process(), ILIAS\FileUpload\Processor\WhitelistFileHeaderPreProcessor\process(), ILIAS\FileUpload\Processor\BlacklistFileHeaderPreProcessor\process(), ILIAS\FileUpload\Processor\BlacklistMimeTypePreProcessor\process(), ILIAS\FileUpload\Processor\WhitelistMimeTypePreProcessor\process(), ILIAS\FileUpload\Processor\WhitelistExtensionPreProcessor\process(), ILIAS\FileUpload\Processor\BlacklistExtensionPreProcessor\process(), ilObjFile\raiseUploadError(), ilObjectCustomIconImpl\saveFromSourceFile(), ilOpenIdConnectSettingsGUI\saveImageFromHttpRequest(), ilWorkflowEngineDefinitionsGUI\showUploadForm(), ILIAS\FileUpload\Processor\VirusScannerPreProcessorTest\testNoVirusDetected(), ILIAS\FileUpload\Processor\PreProcessorManagerImplTest\testProcessInvalidFileWhichShouldGetRejected(), ILIAS\FileUpload\Processor\PreProcessorManagerImplTest\testProcessValidFileWhichShouldSucceed(), ILIAS\FileUpload\Processor\PreProcessorManagerImplTest\testProcessValidFileWithFailingProcessorWhichShouldGetRejected(), ILIAS\FileUpload\Processor\BlacklistFileHeaderPreProcessorTest\testProcessWhichShouldSucceed(), ILIAS\FileUpload\Processor\FilenameOverridePreProcessorTest\testProcessWhichShouldSucceed(), ILIAS\FileUpload\Processor\WhitelistFileHeaderPreProcessorTest\testProcessWhichShouldSucceed(), ILIAS\FileUpload\Processor\BlacklistExtensionPreProcessorTest\testProcessWhichShouldSucceed(), ILIAS\FileUpload\Processor\WhitelistExtensionPreProcessorTest\testProcessWhichShouldSucceed(), ILIAS\FileUpload\FileUploadImplTest\testProcessWhichShouldSucceed(), ILIAS\FileUpload\Processor\WhitelistExtensionPreProcessorTest\testProcessWithoutExtensionWhichShouldSucceed(), ILIAS\FileUpload\Processor\PreProcessorManagerImplTest\testProcessWithoutProcessorsWhichShouldSucceed(), ILIAS\FileUpload\Processor\WhitelistMimeTypePreProcessorTest\testProcessWithWhitelistedAnyKindOfOggMimeTypeWhichShouldSucceed(), ILIAS\FileUpload\Processor\WhitelistMimeTypePreProcessorTest\testProcessWithWhitelistedAnyKindOfTextMimeTypeWhichShouldSucceed(), and ILIAS\FileUpload\Processor\WhitelistMimeTypePreProcessorTest\testProcessWithWhitelistedMimeTypeWhichShouldSucceed().
const ILIAS\FileUpload\DTO\ProcessingStatus::REJECTED = 2 |
Upload got rejected by a processor.
Definition at line 30 of file ProcessingStatus.php.
Referenced by ILIAS\FileUpload\FileUploadImpl\moveFilesTo(), ILIAS\FileUpload\FileUploadImpl\moveOneFileTo(), ILIAS\FileUpload\Processor\PreProcessorManagerImpl\process(), ILIAS\FileUpload\Processor\VirusScannerPreProcessor\process(), ILIAS\FileUpload\Processor\WhitelistFileHeaderPreProcessor\process(), ILIAS\FileUpload\Processor\BlacklistFileHeaderPreProcessor\process(), ILIAS\FileUpload\Processor\BlacklistMimeTypePreProcessor\process(), ILIAS\FileUpload\Processor\WhitelistMimeTypePreProcessor\process(), ILIAS\FileUpload\Processor\WhitelistExtensionPreProcessor\process(), ILIAS\FileUpload\Processor\BlacklistExtensionPreProcessor\process(), ILIAS\FileUpload\FileUploadImpl\regenerateUploadResultWithCopyError(), ILIAS\FileUpload\FileUploadImpl\rejectFailedUpload(), ILIAS\FileUpload\Processor\PreProcessorManagerImplTest\testProcessInvalidFileWhichShouldGetRejected(), ILIAS\FileUpload\Processor\PreProcessorManagerImplTest\testProcessValidFileWithFailingProcessorWhichShouldGetRejected(), ILIAS\FileUpload\Processor\BlacklistMimeTypePreProcessorTest\testProcessWithBlacklistedAnyKindOfOggMimeTypeWhichGetRejected(), ILIAS\FileUpload\Processor\BlacklistMimeTypePreProcessorTest\testProcessWithBlacklistedAnyKindOfTextMimeTypeWhichGetRejected(), ILIAS\FileUpload\Processor\BlacklistExtensionPreProcessorTest\testProcessWithBlacklistedEmptyExtensionWhichShouldGetRejected(), ILIAS\FileUpload\Processor\BlacklistExtensionPreProcessorTest\testProcessWithBlacklistedExtensionWhichShouldGetRejected(), ILIAS\FileUpload\Processor\BlacklistMimeTypePreProcessorTest\testProcessWithBlacklistedMimeTypeWhichShouldGetRejected(), ILIAS\FileUpload\FileUploadImplTest\testProcessWithFailedUploadWhichShouldGetRejected(), ILIAS\FileUpload\Processor\WhitelistFileHeaderPreProcessorTest\testProcessWithHeaderMismatchWhichShouldGetRejected(), ILIAS\FileUpload\Processor\BlacklistFileHeaderPreProcessorTest\testProcessWithHeaderMismatchWhichShouldGetRejected(), ILIAS\FileUpload\Processor\WhitelistExtensionPreProcessorTest\testProcessWithoutWhitelistedExtensionWhichShouldGetRejected(), ILIAS\FileUpload\Processor\VirusScannerPreProcessorTest\testVirusDetected(), and ilCertificateBackgroundImageUpload\uploadBackgroundImage().