ILIAS
Release_5_0_x_branch Revision 61816
|
Abstract parent class for all file preview renderer classes. More...
Public Member Functions | |
getSupportedRepositoryTypes () | |
Gets an array containing the repository types (e.g. | |
supports ($preview) | |
Determines whether the specified preview object is supported by the renderer. | |
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. | |
Public Member Functions inherited from ilPreviewRenderer | |
getName () | |
Gets the name of the renderer. | |
isPlugin () | |
Determines whether the renderer is a plugin or a built in one. | |
render ($preview, $obj, $async) | |
Creates the preview of the specified preview object. |
Additional Inherited Members | |
Protected Member Functions inherited from ilPreviewRenderer | |
renderImages ($obj) | |
Renders the specified object into images. | |
getImageSize () | |
Gets the size of the preview images in pixels. | |
getImageQuality () | |
Gets the quality (compression) of the preview images (1-100). | |
getMaximumNumberOfPreviews () | |
Gets the maximum number of preview pictures per object. |
Abstract parent class for all file preview renderer classes.
Definition at line 14 of file class.ilFilePreviewRenderer.php.
|
abstract |
Gets an array containing the file formats that are supported by the renderer.
Reimplemented in ilGhostscriptRenderer, and ilImageMagickRenderer.
Referenced by supports().
|
final |
Gets an array containing the repository types (e.g.
'file' or 'crs') that are supported by the renderer.
Reimplemented from ilPreviewRenderer.
Definition at line 21 of file class.ilFilePreviewRenderer.php.
ilFilePreviewRenderer::prepareFileForExec | ( | $filepath | ) |
Checks whether the specified file path can be used with exec() commands.
If the file name is not conform with exec() commands, a temporary file is created and the path to that file is returned.
string | $filepath | The path of the file to check. |
Definition at line 56 of file class.ilFilePreviewRenderer.php.
References ilUtil\ilTempnam().
Referenced by ilGhostscriptRenderer\renderImages(), and ilImageMagickRenderer\renderImages().
ilFilePreviewRenderer::supports | ( | $preview | ) |
Determines whether the specified preview object is supported by the renderer.
ilPreview | $preview | The preview object to check. |
Reimplemented from ilPreviewRenderer.
Definition at line 32 of file class.ilFilePreviewRenderer.php.
References $filename, $preview, ilObjFileAccess\_getFileExtension(), ilObjFile\_lookupFileName(), and getSupportedFileFormats().