4include_once(
"./Services/Preview/classes/class.ilPreviewRenderer.php");
40 require_once(
"./Modules/File/classes/class.ilObjFile.php");
41 include_once
'./Modules/File/classes/class.ilObjFileAccess.php';
43 if (isset($_FILES[
'file'][
'name'])) {
45 } elseif (isset($_FILES[
'upload_files'][
'name'])) {
46 $filename = $_FILES[
'upload_files'][
'name'];
68 $pos = strrpos($filepath,
"/");
69 $name = $pos !==
false ? substr($filepath, $pos + 1) : $filepath;
An exception for terminatinating execution or to throw for unit testing.
Abstract parent class for all file preview renderer classes.
supports($preview)
Determines whether the specified preview object is supported by the renderer.
getSupportedRepositoryTypes()
Gets an array containing the repository types (e.g.
prepareFileForExec($filepath)
Checks whether the specified file path can be used with exec() commands.
getSupportedFileFormats()
Gets an array containing the file formats that are supported by the renderer.
static getValidFilename($a_filename)
Get valid filename.
static _getFileExtension($a_file_name)
Gets the file extension of the specified file name.
static _lookupFileName($a_id)
Abstract parent class for all preview renderer classes.