|
ILIAS
Release_4_4_x_branch Revision 61816
|
Abstract parent class for all preview renderer classes. More...
Inheritance diagram for ilPreviewRenderer:
Collaboration diagram for ilPreviewRenderer:Public Member Functions | |
| getName () | |
| Gets the name of the renderer. | |
| isPlugin () | |
| Determines whether the renderer is a plugin or a built in one. | |
| getSupportedRepositoryTypes () | |
| Gets an array containing the repository types (e.g. | |
| supports ($preview) | |
| Determines whether the specified preview object is supported by the renderer. | |
| render ($preview, $obj, $async) | |
| Creates the preview of the specified preview object. | |
Protected Member Functions | |
| 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. | |
Private Member Functions | |
| createPreviewImage ($src_img_path, $dest_img_path) | |
| Creates a preview image path from the specified source image. | |
Abstract parent class for all preview renderer classes.
Definition at line 14 of file class.ilPreviewRenderer.php.
|
private |
Creates a preview image path from the specified source image.
| string | $src_img_path | The source image path. |
| string | $dest_img_path | The destination image path. |
Definition at line 119 of file class.ilPreviewRenderer.php.
References ilUtil\escapeShellArg(), ilUtil\execConvert(), getImageQuality(), getImageSize(), and ilUtil\isWindows().
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
finalprotected |
Gets the quality (compression) of the preview images (1-100).
Definition at line 162 of file class.ilPreviewRenderer.php.
Referenced by createPreviewImage().
Here is the caller graph for this function:
|
finalprotected |
Gets the size of the preview images in pixels.
Definition at line 152 of file class.ilPreviewRenderer.php.
Referenced by createPreviewImage().
Here is the caller graph for this function:
|
finalprotected |
Gets the maximum number of preview pictures per object.
Definition at line 172 of file class.ilPreviewRenderer.php.
References ilPreviewSettings\getMaximumPreviews().
Referenced by ilGhostscriptRenderer\renderImages().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPreviewRenderer::getName | ( | ) |
Gets the name of the renderer.
Definition at line 21 of file class.ilPreviewRenderer.php.
|
abstract |
Gets an array containing the repository types (e.g.
'file' or 'crs') that are supported by the renderer.
Reimplemented in ilFilePreviewRenderer.
Referenced by supports().
Here is the caller graph for this function:
|
final |
Determines whether the renderer is a plugin or a built in one.
Definition at line 39 of file class.ilPreviewRenderer.php.
|
final |
Creates the preview of the specified preview object.
| ilPreview | $preview | The preview object. |
| ilObject | $obj | The object to create a preview for. |
| bool | $async | true, if the rendering should be done asynchronously; otherwise, false. |
Definition at line 72 of file class.ilPreviewRenderer.php.
References $preview, $success, createPreviewImage(), ilUtil\now(), ilPreview\RENDER_STATUS_CREATED, ilPreview\RENDER_STATUS_FAILED, ilPreview\RENDER_STATUS_PENDING, and renderImages().
Here is the call graph for this function:
|
abstractprotected |
Renders the specified object into images.
The images do not need to be of the preview image size.
| ilObject | $obj | The object to create images from. |
Reimplemented in ilImageMagickRenderer, and ilGhostscriptRenderer.
Referenced by render().
Here is the caller graph for this function:| ilPreviewRenderer::supports | ( | $preview | ) |
Determines whether the specified preview object is supported by the renderer.
| ilPreview | $preview | The preview object to check. |
Reimplemented in ilFilePreviewRenderer.
Definition at line 58 of file class.ilPreviewRenderer.php.
References $preview, and getSupportedRepositoryTypes().
Here is the call graph for this function: