◆ __construct()
◆ getModalShowSignalId()
ilWebDAVMountInstructionsModalGUI::getModalShowSignalId |
( |
| ) |
|
|
private |
◆ getRenderedModal()
ilWebDAVMountInstructionsModalGUI::getRenderedModal |
( |
| ) |
|
|
private |
◆ maybeRenderWebDAVModalInGlobalTpl()
static ilWebDAVMountInstructionsModalGUI::maybeRenderWebDAVModalInGlobalTpl |
( |
| ) |
|
|
static |
Definition at line 60 of file class.ilWebDAVMountInstructionsModalGUI.php.
60 : void
61 {
62 if (self::$modal_already_rendered) {
63 return;
64 }
65
69 $repository,
70 $DIC->ui()->factory(),
71 $DIC->ui()->renderer(),
73 );
74
75 self::$modal_already_rendered = true;
76 $js_function = '<script>function triggerWebDAVModal(api_url){ $.ajax(api_url).done(function(data){ $(document).trigger("' . $instance->getModalShowSignalId(
77 ) . '", "{}"); $("#' . self::MOUNT_INSTRUCTIONS_CONTENT_ID . '").html(data);}) }</script>';
78
79 $webdav_modal_html = $instance->getRenderedModal() . $js_function;
80
81 $tpl =
$DIC->ui()->mainTemplate();
82 $tpl->setVariable('WEBDAV_MODAL', $webdav_modal_html);
83 }
References $DIC.
Referenced by ilWebDAVMountInstructionsDocumentTableGUI\__construct().
◆ $modal
Lightbox ilWebDAVMountInstructionsModalGUI::$modal |
|
private |
◆ $modal_already_rendered
bool ilWebDAVMountInstructionsModalGUI::$modal_already_rendered = false |
|
staticprivate |
◆ MOUNT_INSTRUCTIONS_CONTENT_ID
const ilWebDAVMountInstructionsModalGUI::MOUNT_INSTRUCTIONS_CONTENT_ID = 'webdav_mount_instructions_content' |
|
private |
The documentation for this class was generated from the following file: