◆ buildImagePath()
| ILIAS\TestQuestionPool\QuestionFilesService::buildImagePath |
( |
|
$questionId, |
|
|
|
$parentObjectId |
|
) |
| |
◆ getAllowedFileExtensionsForMimeType()
| ILIAS\TestQuestionPool\QuestionFilesService::getAllowedFileExtensionsForMimeType |
( |
string |
$mimeType | ) |
|
◆ getAllowedImageMaterialFileExtensions()
| static ILIAS\TestQuestionPool\QuestionFilesService::getAllowedImageMaterialFileExtensions |
( |
| ) |
|
|
static |
- Returns
- array all allowed file extensions for image material
SlowArrayOperationsInLoopInspection
Definition at line 18 of file class.QuestionFilesService.php.
20 $extensions = array();
22 foreach (self::$allowedImageMaterialFileExtensionsByMimeType as $mimeType => $mimeExtensions) {
24 $extensions = array_merge($extensions, $mimeExtensions);
26 return array_unique($extensions);
◆ isAllowedImageFileExtension()
| ILIAS\TestQuestionPool\QuestionFilesService::isAllowedImageFileExtension |
( |
string |
$mimeType, |
|
|
string |
$fileExtension |
|
) |
| |
◆ isAllowedImageMimeType()
| ILIAS\TestQuestionPool\QuestionFilesService::isAllowedImageMimeType |
( |
|
$mimeType | ) |
|
◆ $allowedCharsetsByMimeType
| array ILIAS\TestQuestionPool\QuestionFilesService::$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 39 of file class.QuestionFilesService.php.
◆ $allowedFileExtensionsByMimeType
| array ILIAS\TestQuestionPool\QuestionFilesService::$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 33 of file class.QuestionFilesService.php.
◆ $allowedImageMaterialFileExtensionsByMimeType
| array ILIAS\TestQuestionPool\QuestionFilesService::$allowedImageMaterialFileExtensionsByMimeType |
|
staticprotected |
Initial value:= array(
'image/jpeg' => array('jpg', 'jpeg'),
'image/png' => array('png'),
'image/gif' => array('gif')
)
Definition at line 9 of file class.QuestionFilesService.php.
◆ IMG_MIME_TYPE_GIF
| const ILIAS\TestQuestionPool\QuestionFilesService::IMG_MIME_TYPE_GIF = 'image/gif' |
◆ IMG_MIME_TYPE_JPG
| const ILIAS\TestQuestionPool\QuestionFilesService::IMG_MIME_TYPE_JPG = 'image/jpeg' |
◆ IMG_MIME_TYPE_PNG
| const ILIAS\TestQuestionPool\QuestionFilesService::IMG_MIME_TYPE_PNG = 'image/png' |
The documentation for this class was generated from the following file: