ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 161 of file class.ilQtiMatImageSecurity.php.
Referenced by validateLabel().
|
protected |
Definition at line 151 of file class.ilQtiMatImageSecurity.php.
References ilFileUtils\lookupContentMimeType().
Referenced by __construct().
|
protected |
Definition at line 59 of file class.ilQtiMatImageSecurity.php.
References $detectedMimeType.
Referenced by validateContent(), and validateLabel().
ilQtiMatImageSecurity::getImageMaterial | ( | ) |
Definition at line 43 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 178 of file class.ilQtiMatImageSecurity.php.
Referenced by validateLabel().
ilQtiMatImageSecurity::sanitizeLabel | ( | ) |
Definition at line 140 of file class.ilQtiMatImageSecurity.php.
References ilUtil\getASCIIFilename(), getImageMaterial(), and ilUtil\stripSlashes().
|
protected |
string | $detectedMimeType |
Definition at line 67 of file class.ilQtiMatImageSecurity.php.
References $detectedMimeType.
Referenced by __construct().
ilQtiMatImageSecurity::setImageMaterial | ( | $imageMaterial | ) |
ilQTIMatimage | $imageMaterial |
Definition at line 51 of file class.ilQtiMatImageSecurity.php.
References $imageMaterial.
Referenced by __construct().
ilQtiMatImageSecurity::validate | ( | ) |
Definition at line 72 of file class.ilQtiMatImageSecurity.php.
References validateContent(), and validateLabel().
|
protected |
Definition at line 87 of file class.ilQtiMatImageSecurity.php.
References $detectedMimeType, $GLOBALS, $log, assQuestion\fetchMimeTypeIdentifier(), getDetectedMimeType(), getImageMaterial(), and assQuestion\isAllowedImageMimeType().
Referenced by validate().
|
protected |
Definition at line 121 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().