public function createFromData($data, $mimeType, $filename = '')
    {
        $destination = $this->buildDestination();

        try {
            return FileSystemFile::createFromData($data, $destination, $mimeType, $filename);
        } catch (RuntimeException $e) {
            $msg = "An error occured while creating a QTI FileSystemFile object.";
            throw new FileManagerException($msg, 0, $e);
        }
    }
public function createFromData($data, $mimeType, $filename = '')
    {
        $destination = $this->buildDestination();

        try {
            return FileSystemFile::createFromData($data, $destination, $mimeType, $filename);
        } catch (RuntimeException $e) {
            $msg = "An error occured while creating a QTI FileSystemFile object.";
            throw new FileManagerException($msg, 0, $e);
        }
    }
public function createFromData ( $ data , $ mimeType , $ filename = '' ) { $ destination = $ this -> buildDestination ( ) ; try { return FileSystemFile :: createFromData ( $ data , $ destination , $ mimeType , $ filename ) ; } catch ( RuntimeException $ e ) { $ msg = "An error occured while creating a QTI FileSystemFile object." ; throw new FileManagerException ( $ msg , 0 , $ e ) ; } }
Create a FileSystemFile from existing data on the file system.

@param string $data The binary data of the FileSystemFile object to be created.
@param string $mimeType A mime-type.
@param string $filename A file name e.g. "myfile.txt".
@throws \qtism\common\datatypes\files\FileManagerException
@return \qtism\common\datatypes\files\FileSystemFile
Create a FileSystemFile from existing data on the file system .