4require_once
'Modules/TestQuestionPool/classes/class.assQuestion.php';
5require_once
'Services/Utilities/classes/class.ilFileUtils.php';
6require_once
'Services/QTI/exceptions/class.ilQtiException.php';
105 'QPL: imported image with declared mime (' . $declaredMimeType .
') '
133 $label = basename($label);
152 $pathInfo = pathinfo($label);
154 if (isset($pathInfo[
'extension'])) {
155 return $pathInfo[
'extension'];
168 $pathInfo = pathinfo($label);
170 return array_key_exists(
'extension', $pathInfo);
An exception for terminatinating execution or to throw for unit testing.
static isAllowedImageFileExtension($mimeType, $fileExtension)
static fetchMimeTypeIdentifier($contentTypeString)
static isAllowedImageMimeType($mimeType)
static lookupContentMimeType($content)
__construct(ilQTIMatimage $imageMaterial)
hasFileExtension($label)
Returns whether or not the passed label contains a file extension.
determineFileExtension($label)
Returns the determine file extension.
setImageMaterial($imageMaterial)
setDetectedMimeType($detectedMimeType)
determineMimeType($content)
static getASCIIFilename($a_filename)
convert utf8 to ascii filename
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.