|
ILIAS
Release_4_4_x_branch Revision 61816
|
Collaboration diagram for ilPreviewGUI:Public Member Functions | |
| __construct ($a_node_id=null, $a_context=self::CONTEXT_REPOSITORY, $a_obj_id=null, $a_access_handler=null) | |
| Creates a new preview GUI. | |
| & | executeCommand () |
| execute command | |
| getJSCall ($a_html_id) | |
| Gets the JavaScript code to show the preview. | |
| getPreviewHTML () | |
| Gets the HTML that displays the preview. | |
| getInlineHTML () | |
| Gets the HTML that is used for displaying the preview inline. | |
| renderPreview () | |
| Renders the preview and returns the HTML code that displays the preview. | |
| deletePreview () | |
| Deletes the preview and returns the HTML code that displays the preview. | |
Data Fields | |
| const | CONTEXT_REPOSITORY = 1 |
| const | CONTEXT_WORKSPACE = 2 |
Private Member Functions | |
| renderCommand ($tmpl, $a_cmd, $btn_topic, $loading_topic, $a_display_status) | |
| Renders a command to the specified template. | |
| getHtmlId () | |
| Gets the HTML id for the preview. | |
| buildUrl ($a_cmd="", $a_async=true) | |
| Builds the URL to call the preview GUI. | |
Static Private Member Functions | |
| static | initPreview () |
| Initializes the preview and loads the needed javascripts and styles. | |
| static | jsonSafeString ($text) |
| Makes the specified string safe for JSON. | |
Private Attributes | |
| $node_id = null | |
| $obj_id = null | |
| $preview = null | |
| $access_handler = null | |
| $context = null | |
| $ctrl = null | |
| $lng = null | |
Static Private Attributes | |
| static | $initialized = false |
Definition at line 15 of file class.ilPreviewGUI.php.
| ilPreviewGUI::__construct | ( | $a_node_id = null, |
|
$a_context = self::CONTEXT_REPOSITORY, |
|||
$a_obj_id = null, |
|||
$a_access_handler = null |
|||
| ) |
Creates a new preview GUI.
| int | $a_node_id | The node id. |
| int | $a_context | The context of the preview. |
| int | $a_obj_id | The object id. |
| object | $a_access_handler | The access handler to use. |
Definition at line 37 of file class.ilPreviewGUI.php.
References $_GET, $ilCtrl, $lng, ilObject\_lookupObjId(), and initPreview().
Here is the call graph for this function:
|
private |
Builds the URL to call the preview GUI.
| $a_cmd | string The command to call. |
| $a_async | bool true, to create a URL to call asynchronous; otherwise, false. |
Definition at line 313 of file class.ilPreviewGUI.php.
Referenced by getJSCall(), and renderCommand().
Here is the caller graph for this function:| ilPreviewGUI::deletePreview | ( | ) |
Deletes the preview and returns the HTML code that displays the preview.
Definition at line 285 of file class.ilPreviewGUI.php.
References getPreviewHTML().
Here is the call graph for this function:| & ilPreviewGUI::executeCommand | ( | ) |
|
private |
Gets the HTML id for the preview.
Definition at line 302 of file class.ilPreviewGUI.php.
References $node_id.
Referenced by getPreviewHTML(), and renderCommand().
Here is the caller graph for this function:| ilPreviewGUI::getInlineHTML | ( | ) |
Gets the HTML that is used for displaying the preview inline.
Definition at line 205 of file class.ilPreviewGUI.php.
References getPreviewHTML(), ilPreview\RENDER_STATUS_CREATED, ilPreview\RENDER_STATUS_FAILED, ilPreview\RENDER_STATUS_NONE, and renderCommand().
Here is the call graph for this function:| ilPreviewGUI::getJSCall | ( | $a_html_id | ) |
Gets the JavaScript code to show the preview.
| $a_html_id | string The id of the HTML element that contains the preview. |
Definition at line 111 of file class.ilPreviewGUI.php.
References buildUrl(), jsonSafeString(), and ilPreview\RENDER_STATUS_NONE.
Here is the call graph for this function:| ilPreviewGUI::getPreviewHTML | ( | ) |
Gets the HTML that displays the preview.
Definition at line 126 of file class.ilPreviewGUI.php.
References ilJsonUtil\encode(), exit, getHtmlId(), ilPreview\RENDER_STATUS_FAILED, and ilPreview\RENDER_STATUS_PENDING.
Referenced by deletePreview(), getInlineHTML(), and renderPreview().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Initializes the preview and loads the needed javascripts and styles.
Definition at line 329 of file class.ilPreviewGUI.php.
References $ilCtrl, $lng, $tpl, ilJsonUtil\encode(), ilPreviewSettings\getImageSize(), ilUtil\getStyleSheetLocation(), iljQueryUtil\initjQuery(), and ilTooltipGUI\initLibrary().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Makes the specified string safe for JSON.
| string | $text | The text to make JSON safe. |
Definition at line 385 of file class.ilPreviewGUI.php.
Referenced by getJSCall(), and renderCommand().
Here is the caller graph for this function:
|
private |
Renders a command to the specified template.
| $tmpl | object The template. |
| $a_cmd | string The command to create. |
| $btn_topic | string The topic to get the button text. |
| $loading_topic | string The topic to get the loading text. |
| $a_display_status | array An array containing the statuses when the command should be visible. |
Definition at line 243 of file class.ilPreviewGUI.php.
References buildUrl(), getHtmlId(), and jsonSafeString().
Referenced by getInlineHTML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPreviewGUI::renderPreview | ( | ) |
Renders the preview and returns the HTML code that displays the preview.
Definition at line 268 of file class.ilPreviewGUI.php.
References ilObjectFactory\getInstanceByObjId(), and getPreviewHTML().
Here is the call graph for this function:
|
private |
Definition at line 20 of file class.ilPreviewGUI.php.
|
private |
Definition at line 21 of file class.ilPreviewGUI.php.
|
private |
Definition at line 22 of file class.ilPreviewGUI.php.
|
staticprivate |
Definition at line 25 of file class.ilPreviewGUI.php.
|
private |
Definition at line 23 of file class.ilPreviewGUI.php.
Referenced by __construct(), and initPreview().
|
private |
Definition at line 17 of file class.ilPreviewGUI.php.
Referenced by getHtmlId().
|
private |
Definition at line 18 of file class.ilPreviewGUI.php.
|
private |
Definition at line 19 of file class.ilPreviewGUI.php.
| const ilPreviewGUI::CONTEXT_REPOSITORY = 1 |
Definition at line 27 of file class.ilPreviewGUI.php.
Referenced by ilObjFileGUI\infoScreenForward().
| const ilPreviewGUI::CONTEXT_WORKSPACE = 2 |
Definition at line 28 of file class.ilPreviewGUI.php.
Referenced by ilObjFileGUI\infoScreenForward().