|
ILIAS
release_8 Revision v8.24
|
Inheritance diagram for ilPreviewGUI:
Collaboration diagram for ilPreviewGUI:Public Member Functions | |
| __construct (?int $a_node_id=null, ?int $a_context=self::CONTEXT_REPOSITORY, ?int $a_obj_id=null, ?object $a_access_handler=null) | |
| Creates a new preview GUI. More... | |
| executeCommand () | |
| execute command More... | |
| getJSCall (string $a_html_id) | |
| Gets the JavaScript code to show the preview. More... | |
| getPreviewHTML () | |
| Gets the HTML that displays the preview. More... | |
| getInlineHTML () | |
| Gets the HTML that is used for displaying the preview inline. More... | |
| renderPreview () | |
| Renders the preview and returns the HTML code that displays the preview. More... | |
| deletePreview () | |
| Deletes the preview and returns the HTML code that displays the preview. More... | |
Static Public Member Functions | |
| static | initPreview () |
| Initializes the preview and loads the needed javascripts and styles. More... | |
Data Fields | |
| const | CONTEXT_REPOSITORY = 1 |
| const | CONTEXT_WORKSPACE = 2 |
Private Member Functions | |
| renderCommand (ilTemplate $tmpl, string $a_cmd, string $btn_topic, string $loading_topic, array $a_display_status) | |
| Renders a command to the specified template. More... | |
| getHtmlId () | |
| Gets the HTML id for the preview. More... | |
| buildUrl (string $a_cmd="", bool $a_async=true) | |
| Builds the URL to call the preview GUI. More... | |
Static Private Member Functions | |
| static | jsonSafeString (string $text) |
| Makes the specified string safe for JSON. More... | |
Private Attributes | |
| int | $node_id = null |
| int | $obj_id = null |
| ilPreview | $preview = null |
| object | $access_handler = null |
| int | $context = null |
| ilCtrl | $ctrl = null |
| ilLanguage | $lng = null |
Static Private Attributes | |
| static bool | $initialized = false |
Definition at line 26 of file class.ilPreviewGUI.php.
| ilPreviewGUI::__construct | ( | ?int | $a_node_id = null, |
| ?int | $a_context = self::CONTEXT_REPOSITORY, |
||
| ?int | $a_obj_id = null, |
||
| ?object | $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. |
| ilWorkspaceAccessHandler | ilAccessHandler | null | $a_access_handler | The access handler to use. |
Definition at line 50 of file class.ilPreviewGUI.php.
References $DIC, $query, ilObject\_lookupObjId(), CONTEXT_REPOSITORY, ILIAS\Repository\ctrl(), initPreview(), and ILIAS\Repository\lng().
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 331 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 306 of file class.ilPreviewGUI.php.
References getPreviewHTML().
Here is the call graph for this function:| ilPreviewGUI::executeCommand | ( | ) |
execute command
Definition at line 118 of file class.ilPreviewGUI.php.
References ILIAS\Repository\ctrl().
Here is the call graph for this function:
|
private |
Gets the HTML id for the preview.
Definition at line 320 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 226 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 | ( | string | $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 135 of file class.ilPreviewGUI.php.
References buildUrl(), jsonSafeString(), ILIAS\Repository\lng(), 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 152 of file class.ilPreviewGUI.php.
References $index, $response, ilObject\_lookupTitle(), ILIAS\Repository\ctrl(), exit, getHtmlId(), ILIAS\Repository\lng(), ilPreview\RENDER_STATUS_FAILED, ilPreview\RENDER_STATUS_PENDING, and ilWACSignedPath\signFile().
Referenced by deletePreview(), getInlineHTML(), and renderPreview().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Initializes the preview and loads the needed javascripts and styles.
Definition at line 350 of file class.ilPreviewGUI.php.
References $DIC, $i, ilPreviewSettings\getImageSize(), ilTooltipGUI\init(), iljQueryUtil\initjQuery(), and ilLegacyFormElementsUtil\prepareFormOutput().
Referenced by __construct(), and ilObjCategoryGUI\addHeaderAction().
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 406 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 | string[] An array containing the statuses when the command should be visible. |
Definition at line 264 of file class.ilPreviewGUI.php.
References buildUrl(), getHtmlId(), jsonSafeString(), ILIAS\Repository\lng(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
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 290 of file class.ilPreviewGUI.php.
References ilObjectFactory\getInstanceByObjId(), and getPreviewHTML().
Here is the call graph for this function:
|
private |
Definition at line 34 of file class.ilPreviewGUI.php.
|
private |
Definition at line 35 of file class.ilPreviewGUI.php.
|
private |
Definition at line 36 of file class.ilPreviewGUI.php.
|
staticprivate |
Definition at line 38 of file class.ilPreviewGUI.php.
|
private |
Definition at line 37 of file class.ilPreviewGUI.php.
|
private |
Definition at line 28 of file class.ilPreviewGUI.php.
Referenced by getHtmlId().
|
private |
Definition at line 29 of file class.ilPreviewGUI.php.
|
private |
Definition at line 30 of file class.ilPreviewGUI.php.
| const ilPreviewGUI::CONTEXT_REPOSITORY = 1 |
Definition at line 40 of file class.ilPreviewGUI.php.
Referenced by __construct(), ilDclFileuploadRecordRepresentation\getHTML(), ilObjFileGUI\infoScreenForward(), and ilObjectListGUI\insertTitle().
| const ilPreviewGUI::CONTEXT_WORKSPACE = 2 |
Definition at line 41 of file class.ilPreviewGUI.php.
Referenced by ilObjFileGUI\infoScreenForward(), and ilObjectListGUI\insertTitle().