4 require_once
'Modules/TestQuestionPool/classes/class.assQuestion.php';
5 require_once
'Services/Utilities/classes/class.ilFileUtils.php';
6 require_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);
determineMimeType($content)
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static getASCIIFilename($a_filename)
convert utf8 to ascii filename
static isAllowedImageMimeType($mimeType)
setImageMaterial($imageMaterial)
determineFileExtension($label)
Returns the determine file extension.
hasFileExtension($label)
Returns whether or not the passed label contains a file extension.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static isAllowedImageFileExtension($mimeType, $fileExtension)
__construct(ilQTIMatimage $imageMaterial)
static lookupContentMimeType($content)
static fetchMimeTypeIdentifier($contentTypeString)
setDetectedMimeType($detectedMimeType)