Definition at line 23 of file QuestionFiles.php.
◆ buildImagePath()
ILIAS\TestQuestionPool\Questions\Files\QuestionFiles::buildImagePath |
( |
|
$questionId, |
|
|
|
$parentObjectId |
|
) |
| |
◆ getAllowedFileExtensionsForMimeType()
ILIAS\TestQuestionPool\Questions\Files\QuestionFiles::getAllowedFileExtensionsForMimeType |
( |
string |
$mimeType | ) |
|
◆ getAllowedImageMaterialFileExtensions()
static ILIAS\TestQuestionPool\Questions\Files\QuestionFiles::getAllowedImageMaterialFileExtensions |
( |
| ) |
|
|
static |
- Returns
- array all allowed file extensions for image material
SlowArrayOperationsInLoopInspection
Definition at line 34 of file QuestionFiles.php.
36 $extensions = array();
38 foreach (self::$allowedImageMaterialFileExtensionsByMimeType as $mimeType => $mimeExtensions) {
40 $extensions = array_merge($extensions, $mimeExtensions);
42 return array_unique($extensions);
◆ isAllowedImageFileExtension()
ILIAS\TestQuestionPool\Questions\Files\QuestionFiles::isAllowedImageFileExtension |
( |
string |
$mimeType, |
|
|
string |
$fileExtension |
|
) |
| |
◆ isAllowedImageMimeType()
ILIAS\TestQuestionPool\Questions\Files\QuestionFiles::isAllowedImageMimeType |
( |
|
$mimeType | ) |
|
◆ $allowedCharsetsByMimeType
array ILIAS\TestQuestionPool\Questions\Files\QuestionFiles::$allowedCharsetsByMimeType |
|
staticprotected |
Initial value:= array(
self::IMG_MIME_TYPE_JPG => array('binary'),
self::IMG_MIME_TYPE_PNG => array('binary'),
self::IMG_MIME_TYPE_GIF => array('binary')
)
Definition at line 55 of file QuestionFiles.php.
◆ $allowedFileExtensionsByMimeType
array ILIAS\TestQuestionPool\Questions\Files\QuestionFiles::$allowedFileExtensionsByMimeType |
|
staticprotected |
Initial value:= array(
self::IMG_MIME_TYPE_JPG => array('jpg', 'jpeg'),
self::IMG_MIME_TYPE_PNG => array('png'),
self::IMG_MIME_TYPE_GIF => array('gif')
)
Definition at line 49 of file QuestionFiles.php.
◆ $allowedImageMaterialFileExtensionsByMimeType
array ILIAS\TestQuestionPool\Questions\Files\QuestionFiles::$allowedImageMaterialFileExtensionsByMimeType |
|
staticprotected |
Initial value:= array(
'image/jpeg' => array('jpg', 'jpeg'),
'image/png' => array('png'),
'image/gif' => array('gif')
)
Definition at line 25 of file QuestionFiles.php.
◆ IMG_MIME_TYPE_GIF
const ILIAS\TestQuestionPool\Questions\Files\QuestionFiles::IMG_MIME_TYPE_GIF = 'image/gif' |
◆ IMG_MIME_TYPE_JPG
const ILIAS\TestQuestionPool\Questions\Files\QuestionFiles::IMG_MIME_TYPE_JPG = 'image/jpeg' |
◆ IMG_MIME_TYPE_PNG
const ILIAS\TestQuestionPool\Questions\Files\QuestionFiles::IMG_MIME_TYPE_PNG = 'image/png' |
The documentation for this class was generated from the following file: