ILIAS
release_8 Revision v8.19
|
Public Member Functions | |
__construct (ilQTIMatimage $imageMaterial) | |
getImageMaterial () | |
setImageMaterial (ilQTIMatimage $imageMaterial) | |
validate () | |
sanitizeLabel () | |
Protected Member Functions | |
getDetectedMimeType () | |
setDetectedMimeType (string $detectedMimeType) | |
validateContent () | |
validateLabel () | |
determineMimeType (?string $content) | |
determineFileExtension (string $label) | |
hasFileExtension (string $label) | |
Protected Attributes | |
ilQTIMatimage | $imageMaterial |
string | $detectedMimeType = "" |
Definition at line 28 of file class.ilQtiMatImageSecurity.php.
ilQtiMatImageSecurity::__construct | ( | ilQTIMatimage | $imageMaterial | ) |
Definition at line 33 of file class.ilQtiMatImageSecurity.php.
References determineMimeType(), getImageMaterial(), setDetectedMimeType(), and setImageMaterial().
|
protected |
Definition at line 142 of file class.ilQtiMatImageSecurity.php.
Referenced by validateLabel().
|
protected |
Definition at line 135 of file class.ilQtiMatImageSecurity.php.
Referenced by __construct().
|
protected |
Definition at line 56 of file class.ilQtiMatImageSecurity.php.
References $detectedMimeType.
Referenced by validateContent(), and validateLabel().
ilQtiMatImageSecurity::getImageMaterial | ( | ) |
Definition at line 46 of file class.ilQtiMatImageSecurity.php.
References $imageMaterial.
Referenced by __construct(), sanitizeLabel(), validateContent(), and validateLabel().
|
protected |
Definition at line 153 of file class.ilQtiMatImageSecurity.php.
Referenced by validateLabel().
ilQtiMatImageSecurity::sanitizeLabel | ( | ) |
Definition at line 124 of file class.ilQtiMatImageSecurity.php.
References ilFileUtils\getASCIIFilename(), getImageMaterial(), and ilUtil\stripSlashes().
|
protected |
Definition at line 61 of file class.ilQtiMatImageSecurity.php.
References $detectedMimeType.
Referenced by __construct().
ilQtiMatImageSecurity::setImageMaterial | ( | ilQTIMatimage | $imageMaterial | ) |
Definition at line 51 of file class.ilQtiMatImageSecurity.php.
References $imageMaterial.
Referenced by __construct().
ilQtiMatImageSecurity::validate | ( | ) |
Definition at line 66 of file class.ilQtiMatImageSecurity.php.
References validateContent(), and validateLabel().
|
protected |
Definition at line 79 of file class.ilQtiMatImageSecurity.php.
References $GLOBALS, $log, assQuestion\fetchMimeTypeIdentifier(), getDetectedMimeType(), getImageMaterial(), and assQuestion\isAllowedImageMimeType().
Referenced by validate().
|
protected |
Definition at line 109 of file class.ilQtiMatImageSecurity.php.
References determineFileExtension(), getDetectedMimeType(), getImageMaterial(), hasFileExtension(), and assQuestion\isAllowedImageFileExtension().
Referenced by validate().
|
protected |
Definition at line 31 of file class.ilQtiMatImageSecurity.php.
Referenced by getDetectedMimeType(), and setDetectedMimeType().
|
protected |
Definition at line 30 of file class.ilQtiMatImageSecurity.php.
Referenced by getImageMaterial(), and setImageMaterial().