3declare(strict_types=1);
100 'QPL: imported image with declared mime (' . $declaredMimeType .
') '
128 $label = basename($label);
137 $finfo =
new finfo(FILEINFO_MIME);
139 return $finfo->buffer($content);
144 $pathInfo = pathinfo($label);
146 if (isset($pathInfo[
'extension'])) {
147 return $pathInfo[
'extension'];
155 $pathInfo = pathinfo($label);
157 return array_key_exists(
'extension', $pathInfo);
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
static isAllowedImageFileExtension(string $mimeType, string $fileExtension)
static fetchMimeTypeIdentifier(string $contentType)
static isAllowedImageMimeType($mimeType)
static getASCIIFilename(string $a_filename)
determineFileExtension(string $label)
determineMimeType(?string $content)
setImageMaterial(ilQTIMatimage $imageMaterial)
hasFileExtension(string $label)
__construct(ilQTIMatimage $imageMaterial)
setDetectedMimeType(string $detectedMimeType)
ilQTIMatimage $imageMaterial
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")