ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct (ilQTIMatimage $imageMaterial) | |
getImageMaterial () | |
setImageMaterial ($imageMaterial) | |
validate () | |
sanitizeLabel () | |
Protected Member Functions | |
getDetectedMimeType () | |
setDetectedMimeType ($detectedMimeType) | |
validateContent () | |
validateLabel () | |
determineMimeType ($content) | |
determineFileExtension ($label) | |
Returns the determine file extension. More... | |
hasFileExtension ($label) | |
Returns whether or not the passed label contains a file extension. More... | |
Protected Attributes | |
$imageMaterial | |
$detectedMimeType | |
Definition at line 14 of file class.ilQtiMatImageSecurity.php.
ilQtiMatImageSecurity::__construct | ( | ilQTIMatimage | $imageMaterial | ) |
Definition at line 26 of file class.ilQtiMatImageSecurity.php.
References determineMimeType(), getImageMaterial(), setDetectedMimeType(), and setImageMaterial().
|
protected |
Returns the determine file extension.
If no extension
string | $label |
Definition at line 150 of file class.ilQtiMatImageSecurity.php.
Referenced by validateLabel().
|
protected |
Definition at line 140 of file class.ilQtiMatImageSecurity.php.
References ilFileUtils\lookupContentMimeType().
Referenced by __construct().
|
protected |
Definition at line 58 of file class.ilQtiMatImageSecurity.php.
References $detectedMimeType.
Referenced by validateContent(), and validateLabel().
ilQtiMatImageSecurity::getImageMaterial | ( | ) |
Definition at line 42 of file class.ilQtiMatImageSecurity.php.
References $imageMaterial.
Referenced by __construct(), sanitizeLabel(), validateContent(), and validateLabel().
|
protected |
Returns whether or not the passed label contains a file extension.
string | $label |
Definition at line 166 of file class.ilQtiMatImageSecurity.php.
Referenced by validateLabel().
ilQtiMatImageSecurity::sanitizeLabel | ( | ) |
Definition at line 129 of file class.ilQtiMatImageSecurity.php.
References ilUtil\getASCIIFilename(), getImageMaterial(), and ilUtil\stripSlashes().
|
protected |
string | $detectedMimeType |
Definition at line 66 of file class.ilQtiMatImageSecurity.php.
References $detectedMimeType.
Referenced by __construct().
ilQtiMatImageSecurity::setImageMaterial | ( | $imageMaterial | ) |
ilQTIMatimage | $imageMaterial |
Definition at line 50 of file class.ilQtiMatImageSecurity.php.
References $imageMaterial.
Referenced by __construct().
ilQtiMatImageSecurity::validate | ( | ) |
Definition at line 71 of file class.ilQtiMatImageSecurity.php.
References validateContent(), and validateLabel().
|
protected |
Definition at line 84 of file class.ilQtiMatImageSecurity.php.
References $detectedMimeType, $GLOBALS, $log, assQuestion\fetchMimeTypeIdentifier(), getDetectedMimeType(), getImageMaterial(), and assQuestion\isAllowedImageMimeType().
Referenced by validate().
|
protected |
Definition at line 114 of file class.ilQtiMatImageSecurity.php.
References determineFileExtension(), getDetectedMimeType(), getImageMaterial(), hasFileExtension(), and assQuestion\isAllowedImageFileExtension().
Referenced by validate().
|
protected |
Definition at line 24 of file class.ilQtiMatImageSecurity.php.
Referenced by getDetectedMimeType(), setDetectedMimeType(), and validateContent().
|
protected |
Definition at line 19 of file class.ilQtiMatImageSecurity.php.
Referenced by getImageMaterial(), and setImageMaterial().