|
ILIAS
release_8 Revision v8.24
|
Class UploadResult. More...
Collaboration diagram for ILIAS\FileUpload\DTO\UploadResult:Public Member Functions | |
| __construct (string $name, int $size, string $mimeType, ImmutableStringMap $metaData, ProcessingStatus $status, string $path) | |
| UploadResult constructor. More... | |
| getName () | |
| getSize () | |
| getMimeType () | |
| getMetaData () | |
| getStatus () | |
| isOK () | |
| getPath () | |
Private Attributes | |
| string | $name |
| int | $size |
| string | $mimeType |
| ImmutableStringMap | $metaData |
| ProcessingStatus | $status |
| string | $path |
Class UploadResult.
The upload results are used to tell ILIAS about the file uploads. This class only purpose is to transport data.
Definition at line 33 of file UploadResult.php.
| ILIAS\FileUpload\DTO\UploadResult::__construct | ( | string | $name, |
| int | $size, | ||
| string | $mimeType, | ||
| ImmutableStringMap | $metaData, | ||
| ProcessingStatus | $status, | ||
| string | $path | ||
| ) |
UploadResult constructor.
| string | $name | The name of the uploaded file. |
| int | $size | The original file size. |
| string | $mimeType | The mime type of the uploaded file. |
| ImmutableStringMap | $metaData | Additional meta data. Make sure to wrap the instance with an ImmutableMapWrapper if the instance is mutable. |
| ProcessingStatus | $status | The status code either OK or REJECTED. |
| string | $path | The path to the newly moved file. |
Definition at line 57 of file UploadResult.php.
References ILIAS\FileUpload\DTO\UploadResult\$metaData, ILIAS\FileUpload\DTO\UploadResult\$mimeType, ILIAS\FileUpload\DTO\UploadResult\$name, ILIAS\FileUpload\DTO\UploadResult\$path, ILIAS\FileUpload\DTO\UploadResult\$size, and ILIAS\FileUpload\DTO\UploadResult\$status.
| ILIAS\FileUpload\DTO\UploadResult::getMetaData | ( | ) |
Definition at line 103 of file UploadResult.php.
References ILIAS\FileUpload\DTO\UploadResult\$metaData.
Referenced by ilObjFile\appendUpload(), ILIAS\FileUpload\FileUploadImpl\regenerateUploadResultWithCopyError(), ILIAS\FileUpload\FileUploadImpl\regenerateUploadResultWithPath(), and ilObjFile\replaceWithUpload().
Here is the caller graph for this function:| ILIAS\FileUpload\DTO\UploadResult::getMimeType | ( | ) |
Definition at line 94 of file UploadResult.php.
References ILIAS\FileUpload\DTO\UploadResult\$mimeType.
Referenced by ILIAS\ResourceStorage\Revision\UploadedFileRevision\__construct(), ILIAS\ResourceStorage\Resource\InfoResolver\UploadInfoResolver\__construct(), ILIAS\FileUpload\FileUploadImpl\regenerateUploadResultWithCopyError(), and ILIAS\FileUpload\FileUploadImpl\regenerateUploadResultWithPath().
Here is the caller graph for this function:| ILIAS\FileUpload\DTO\UploadResult::getName | ( | ) |
Definition at line 76 of file UploadResult.php.
References ILIAS\FileUpload\DTO\UploadResult\$name.
Referenced by ILIAS\ResourceStorage\Revision\UploadedFileRevision\__construct(), ILIAS\ResourceStorage\Resource\InfoResolver\UploadInfoResolver\__construct(), ILIAS\ResourceStorage\Manager\Manager\appendNewRevision(), ilObjFile\appendUpload(), ilWebDAVMountInstructionsDocumentFormGUI\getRawMountInstructionsFromFileUpload(), ILIAS\FileUpload\FileUploadImpl\regenerateUploadResultWithCopyError(), ILIAS\FileUpload\FileUploadImpl\regenerateUploadResultWithPath(), ILIAS\ResourceStorage\Manager\Manager\replaceWithUpload(), ilObjFile\replaceWithUpload(), ILIAS\ResourceStorage\Manager\Manager\upload(), ilObjCertificateSettings\uploadBackgroundImage(), and ilIndividualAssessmentFileStorage\uploadFile().
Here is the caller graph for this function:| ILIAS\FileUpload\DTO\UploadResult::getPath | ( | ) |
Definition at line 127 of file UploadResult.php.
References ILIAS\FileUpload\DTO\UploadResult\$path.
Referenced by ilObjCertificateSettings\uploadBackgroundImage(), and ilIndividualAssessmentFileStorage\uploadFile().
Here is the caller graph for this function:| ILIAS\FileUpload\DTO\UploadResult::getSize | ( | ) |
Definition at line 85 of file UploadResult.php.
References ILIAS\FileUpload\DTO\UploadResult\$size.
Referenced by ILIAS\ResourceStorage\Revision\UploadedFileRevision\__construct(), ILIAS\FileUpload\FileUploadImpl\regenerateUploadResultWithCopyError(), and ILIAS\FileUpload\FileUploadImpl\regenerateUploadResultWithPath().
Here is the caller graph for this function:| ILIAS\FileUpload\DTO\UploadResult::getStatus | ( | ) |
Definition at line 112 of file UploadResult.php.
References ILIAS\FileUpload\DTO\UploadResult\$status.
Referenced by ilWebDAVMountInstructionsDocumentFormGUI\getRawMountInstructionsFromFileUpload(), and ILIAS\FileUpload\FileUploadImpl\regenerateUploadResultWithPath().
Here is the caller graph for this function:| ILIAS\FileUpload\DTO\UploadResult::isOK | ( | ) |
Definition at line 118 of file UploadResult.php.
References ILIAS\FileUpload\DTO\ProcessingStatus\OK.
Referenced by ilWebDAVMountInstructionsDocumentFormGUI\getRawMountInstructionsFromFileUpload(), ilObjFileUploadHandlerGUI\getUploadResult(), ilFileVersionsUploadHandlerGUI\getUploadResult(), ilIndividualAssessmentMemberGUI\getUploadResult(), ilCtrlAwareStorageUploadHandler\getUploadResult(), and ilDidacticTemplateIconHandler\handleUpload().
Here is the caller graph for this function:
|
private |
Definition at line 39 of file UploadResult.php.
Referenced by ILIAS\FileUpload\DTO\UploadResult\__construct(), and ILIAS\FileUpload\DTO\UploadResult\getMetaData().
|
private |
Definition at line 38 of file UploadResult.php.
Referenced by ILIAS\FileUpload\DTO\UploadResult\__construct(), and ILIAS\FileUpload\DTO\UploadResult\getMimeType().
|
private |
Definition at line 36 of file UploadResult.php.
Referenced by ILIAS\FileUpload\DTO\UploadResult\__construct(), and ILIAS\FileUpload\DTO\UploadResult\getName().
|
private |
Definition at line 41 of file UploadResult.php.
Referenced by ILIAS\FileUpload\DTO\UploadResult\__construct(), and ILIAS\FileUpload\DTO\UploadResult\getPath().
|
private |
Definition at line 37 of file UploadResult.php.
Referenced by ILIAS\FileUpload\DTO\UploadResult\__construct(), and ILIAS\FileUpload\DTO\UploadResult\getSize().
|
private |
Definition at line 40 of file UploadResult.php.
Referenced by ILIAS\FileUpload\DTO\UploadResult\__construct(), and ILIAS\FileUpload\DTO\UploadResult\getStatus().