4require_once 
'Services/Component/classes/class.ilPlugin.php';
 
   29        $this->timestamp = time();
 
   48        if (!is_string($extension) || !strlen($extension)) {
 
   49            throw new ilException(
'Missing file extension! Please pass a file extension of type string.');
 
   50        } elseif (substr_count($extension, 
'.') > 1 || (strpos($extension, 
'.') !== 
false && strpos($extension, 
'.') !== 0)) {
 
   51            throw new ilException(
'Please use at most one dot in your file extension.');
 
   52        } elseif (strpos($extension, 
'.') === 0) {
 
   53            $extension = substr($extension, 1);
 
   59                throw new ilException(
'The additional file part may not contain __ at the beginning!');
 
   67        return $this->test->getExportDirectory() . DIRECTORY_SEPARATOR . $this->
getTimestamp() . 
'__' . 
IL_INST_ID . 
'__' . $this->test->getType() . 
$additional . $this->test->getId() . 
'.' . $extension;
 
An exception for terminatinating execution or to throw for unit testing.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilObjTest $test)
getPathname($extension, $additional='')