|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Collaboration diagram for ilPreview:Public Member Functions | |
| __construct ($a_obj_id, $a_type="") | |
| Creates a new ilPreview. More... | |
| exists () | |
| Determines whether the preview exists or not. More... | |
| create ($a_obj, $a_force=false) | |
| Creates the preview. More... | |
| delete () | |
| Deletes the preview. More... | |
| getImages () | |
| Gets an array of preview images. More... | |
| save () | |
| Saves the preview data to the database. More... | |
| getObjId () | |
| Gets the id of the object the preview is for. More... | |
| getObjType () | |
| Gets the type of the object the preview is for. More... | |
| getStoragePath () | |
| Gets the path where the previews are stored relative to the web directory. More... | |
| getAbsoluteStoragePath () | |
| Gets the absolute path where the previews are stored. More... | |
| getFilePathFormat () | |
| Gets the absolute file path for preview images that contains a placeholder in the file name ('%02d') to be formatted with the preview number (use 'sprintf' for that). More... | |
| getRenderDate () | |
| Gets the date when the preview was rendered. More... | |
| setRenderDate ($a_date) | |
| Sets the date when the preview was rendered. More... | |
| getRenderStatus () | |
| Gets the status of the rendering process. More... | |
| setRenderStatus ($a_status) | |
| Sets the status of the rendering process. More... | |
| getStorage () | |
| Gets the storage object for the preview. More... | |
Static Public Member Functions | |
| static | createPreview ($a_obj, $a_force=false) |
| Creates the preview for the object with the specified id. More... | |
| static | deletePreview ($a_obj_id) |
| Deletes the preview for the object with the specified id. More... | |
| static | copyPreviews ($a_src_id, $a_dest_id) |
| Copies the preview images from one preview to a new preview object. More... | |
| static | hasPreview ($a_obj_id, $a_type="") |
| Determines whether the object with the specified reference id has a preview. More... | |
| static | lookupRenderStatus ($a_obj_id) |
| Gets the render status for the object with the specified id. More... | |
Data Fields | |
| const | RENDER_STATUS_NONE = "none" |
| const | RENDER_STATUS_PENDING = "pending" |
| const | RENDER_STATUS_CREATED = "created" |
| const | RENDER_STATUS_FAILED = "failed" |
| const | FILENAME_FORMAT = "preview_%02d.jpg" |
Protected Member Functions | |
| doCreate () | |
| Create entry in database. More... | |
| doRead () | |
| Read data from database. More... | |
| doUpdate () | |
| Update data in database. More... | |
| doDelete () | |
| Delete data from database. More... | |
Private Member Functions | |
| init () | |
| Initializes the preview object. More... | |
Private Attributes | |
| $obj_id = null | |
| $obj_type = null | |
| $storage = null | |
| $exists = false | |
| $render_date = false | |
| $render_status = self::RENDER_STATUS_NONE | |
Definition at line 17 of file class.ilPreview.php.
| ilPreview::__construct | ( | $a_obj_id, | |
$a_type = "" |
|||
| ) |
Creates a new ilPreview.
| int | $a_obj_id | The object id. |
| int | $a_type | The type of the object. |
Definition at line 69 of file class.ilPreview.php.
References $a_type, and init().
Here is the call graph for this function:
|
static |
Copies the preview images from one preview to a new preview object.
| int | $a_src_id | The id of the object to copy from. |
| int | $a_dest_id | The id of the object to copy to. |
Definition at line 107 of file class.ilPreview.php.
References ilPreviewSettings\isPreviewEnabled(), and ilUtil\rCopy().
Referenced by ilObjFile\doCloneObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPreview::create | ( | $a_obj, | |
$a_force = false |
|||
| ) |
Creates the preview.
| ilObject | $a_obj | The object to create the preview for. |
| bool | $a_force | true, to force the creation of the preview; false, to create the preview only if needed. |
Definition at line 193 of file class.ilPreview.php.
References getRenderDate(), ilRendererFactory\getRenderer(), getRenderStatus(), getStorage(), ilPreviewSettings\isPreviewEnabled(), RENDER_STATUS_PENDING, and save().
Here is the call graph for this function:
|
static |
Creates the preview for the object with the specified id.
| ilObject | $a_obj | The object to create the preview for. |
| bool | $a_force | true, to force the creation of the preview; false, to create the preview only if needed. |
Definition at line 84 of file class.ilPreview.php.
References $preview.
Referenced by ilObjFile\createPreview(), and ilDclFileuploadRecordRepresentation\getHTML().
Here is the caller graph for this function:| ilPreview::delete | ( | ) |
Deletes the preview.
Definition at line 239 of file class.ilPreview.php.
References doDelete(), exists(), getStorage(), and RENDER_STATUS_NONE.
Here is the call graph for this function:
|
static |
Deletes the preview for the object with the specified id.
| int | $a_obj_id | The id of the object to create the preview for. |
Definition at line 95 of file class.ilPreview.php.
References $preview.
Referenced by ilObjFile\deletePreview().
Here is the caller graph for this function:
|
protected |
Create entry in database.
Definition at line 313 of file class.ilPreview.php.
References $DIC, $ilDB, exists(), getObjId(), getRenderDate(), and getRenderStatus().
Referenced by save().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Delete data from database.
Definition at line 371 of file class.ilPreview.php.
References $DIC, $ilDB, and getObjId().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Read data from database.
Definition at line 332 of file class.ilPreview.php.
References $DIC, $ilDB, exists(), getObjId(), setRenderDate(), and setRenderStatus().
Referenced by init().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Update data in database.
Definition at line 353 of file class.ilPreview.php.
References $DIC, $ilDB, getObjId(), getRenderDate(), and getRenderStatus().
Referenced by save().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPreview::exists | ( | ) |
Determines whether the preview exists or not.
Definition at line 181 of file class.ilPreview.php.
References $exists.
Referenced by delete(), doCreate(), doRead(), and save().
Here is the caller graph for this function:| ilPreview::getAbsoluteStoragePath | ( | ) |
Gets the absolute path where the previews are stored.
Definition at line 423 of file class.ilPreview.php.
References getStorage().
Referenced by getFilePathFormat().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPreview::getFilePathFormat | ( | ) |
Gets the absolute file path for preview images that contains a placeholder in the file name ('%02d') to be formatted with the preview number (use 'sprintf' for that).
Definition at line 434 of file class.ilPreview.php.
References $path, FILENAME_FORMAT, getAbsoluteStoragePath(), and ilUtil\removeTrailingPathSeparators().
Here is the call graph for this function:| ilPreview::getImages | ( | ) |
Gets an array of preview images.
Definition at line 259 of file class.ilPreview.php.
References $file, $path, $size, ilUtil\getHtmlPath(), getRenderStatus(), and getStoragePath().
Here is the call graph for this function:| ilPreview::getObjId | ( | ) |
Gets the id of the object the preview is for.
Definition at line 388 of file class.ilPreview.php.
References $obj_id.
Referenced by doCreate(), doDelete(), doRead(), doUpdate(), and getObjType().
Here is the caller graph for this function:| ilPreview::getObjType | ( | ) |
Gets the type of the object the preview is for.
Definition at line 398 of file class.ilPreview.php.
References $obj_type, ilObject\_lookupType(), and getObjId().
Here is the call graph for this function:| ilPreview::getRenderDate | ( | ) |
Gets the date when the preview was rendered.
Definition at line 445 of file class.ilPreview.php.
References $render_date.
Referenced by create(), doCreate(), and doUpdate().
Here is the caller graph for this function:| ilPreview::getRenderStatus | ( | ) |
Gets the status of the rendering process.
Definition at line 465 of file class.ilPreview.php.
References $render_status.
Referenced by create(), doCreate(), doUpdate(), and getImages().
Here is the caller graph for this function:| ilPreview::getStorage | ( | ) |
Gets the storage object for the preview.
Definition at line 485 of file class.ilPreview.php.
References $storage.
Referenced by create(), delete(), getAbsoluteStoragePath(), and getStoragePath().
Here is the caller graph for this function:| ilPreview::getStoragePath | ( | ) |
Gets the path where the previews are stored relative to the web directory.
Definition at line 413 of file class.ilPreview.php.
References getStorage().
Referenced by getImages().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Determines whether the object with the specified reference id has a preview.
| int | $a_obj_id | The id of the object to check. |
| string | $a_type | The type of the object to check. |
Definition at line 147 of file class.ilPreview.php.
References $a_type, $preview, ilRendererFactory\getRenderer(), and ilPreviewSettings\isPreviewEnabled().
Referenced by ilDclFileuploadRecordRepresentation\getHTML(), ilObjFileGUI\infoScreenForward(), and ilObjectListGUI\insertTitle().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Initializes the preview object.
Definition at line 497 of file class.ilPreview.php.
References doRead().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Gets the render status for the object with the specified id.
| int | $a_obj_id | The id of the object to get the status for. |
Definition at line 170 of file class.ilPreview.php.
References $preview.
Referenced by ilDclFileuploadRecordRepresentation\getHTML(), and ilObjectListGUI\insertTitle().
Here is the caller graph for this function:| ilPreview::save | ( | ) |
Saves the preview data to the database.
Definition at line 301 of file class.ilPreview.php.
References doCreate(), doUpdate(), and exists().
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPreview::setRenderDate | ( | $a_date | ) |
Sets the date when the preview was rendered.
| datetime | $a_status | The date when the preview was rendered. |
Definition at line 455 of file class.ilPreview.php.
Referenced by doRead().
Here is the caller graph for this function:| ilPreview::setRenderStatus | ( | $a_status | ) |
Sets the status of the rendering process.
| string | $a_status | The status to set. |
Definition at line 475 of file class.ilPreview.php.
Referenced by doRead().
Here is the caller graph for this function:
|
private |
Definition at line 49 of file class.ilPreview.php.
Referenced by exists().
|
private |
Definition at line 31 of file class.ilPreview.php.
Referenced by getObjId().
|
private |
Definition at line 37 of file class.ilPreview.php.
Referenced by getObjType().
|
private |
Definition at line 55 of file class.ilPreview.php.
Referenced by getRenderDate().
|
private |
Definition at line 61 of file class.ilPreview.php.
Referenced by getRenderStatus().
|
private |
Definition at line 43 of file class.ilPreview.php.
Referenced by getStorage().
| const ilPreview::FILENAME_FORMAT = "preview_%02d.jpg" |
Definition at line 25 of file class.ilPreview.php.
Referenced by getFilePathFormat().
| const ilPreview::RENDER_STATUS_CREATED = "created" |
Definition at line 22 of file class.ilPreview.php.
Referenced by ilPreviewGUI\getInlineHTML(), and ilPreviewRenderer\render().
| const ilPreview::RENDER_STATUS_FAILED = "failed" |
Definition at line 23 of file class.ilPreview.php.
Referenced by ilPreviewGUI\getInlineHTML(), ilPreviewGUI\getPreviewHTML(), and ilPreviewRenderer\render().
| const ilPreview::RENDER_STATUS_NONE = "none" |
Definition at line 20 of file class.ilPreview.php.
Referenced by delete(), ilDclFileuploadRecordRepresentation\getHTML(), ilPreviewGUI\getInlineHTML(), ilPreviewGUI\getJSCall(), and ilObjectListGUI\insertTitle().
| const ilPreview::RENDER_STATUS_PENDING = "pending" |
Definition at line 21 of file class.ilPreview.php.
Referenced by create(), ilPreviewGUI\getPreviewHTML(), and ilPreviewRenderer\render().