4require_once 
'Services/FileSystem/classes/class.ilFileSystemStorage.php';
 
   33        return 'ilAssQuestionProcessLocks';
 
   57        set_error_handler(
function ($severity, 
$message, 
$file, $line) {
 
   58            throw new ErrorException(
$message, $severity, 0, 
$file, $line);
 
   63            restore_error_handler();
 
   64        } 
catch (Exception $e) {
 
   65            restore_error_handler();
 
   68        if (!file_exists($this->
getPath())) {
 
   69            throw new ErrorException(
sprintf(
'Could not find directory: %s', $this->
getPath()));
 
   77        $userId = (string) $userId;
 
   81        for (
$i = 0, $max = strlen($userId); 
$i < $max; 
$i++) {
 
   82            $path[] = substr($userId, 
$i, 1);
 
   85        $this->subPath = implode(
'/', 
$path);
 
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
getPathPostfix()
Get directory name.
getPathPrefix()
Get path prefix.
create()
Create directory.
__construct($questionId, $userId)
static makeDirParents($a_dir)
Create a new directory and all parent directories.
catch(Exception $e) $message
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file