Definition at line 29 of file ModalGUI.php.
◆ __construct()
Definition at line 36 of file ModalGUI.php.
41 {
42 try {
43 $document = $this->
repository->getMountInstructionsByLanguage($this->
lng->getUserLanguage());
44 $title = $document->getTitle();
45 } catch (InvalidArgumentException) {
46 $title = $this->
lng->txt(
'webfolder_instructions_titletext');
47 }
48
49 $content_div = '<div id="' . self::MOUNT_INSTRUCTIONS_CONTENT_ID . '"></div>';
50 $page = $this->ui_factory->modal()->lightboxTextPage($content_div, $title);
51 $this->
modal = $this->ui_factory->modal()->lightbox($page);
52 }
modal(string $title="", string $cancel_label="")
References ILIAS\Repository\lng(), ILIAS\Repository\modal(), and ILIAS\UI\examples\Deck\repository().
◆ getModalShowSignalId()
| ILIAS\WebDAV\Mount\ModalGUI::getModalShowSignalId |
( |
| ) |
|
|
private |
◆ getRenderedModal()
| ILIAS\WebDAV\Mount\ModalGUI::getRenderedModal |
( |
| ) |
|
|
private |
◆ maybeRenderWebDAVModalInGlobalTpl()
| static ILIAS\WebDAV\Mount\ModalGUI::maybeRenderWebDAVModalInGlobalTpl |
( |
| ) |
|
|
static |
Definition at line 64 of file ModalGUI.php.
64 : void
65 {
66 if (self::$modal_already_rendered) {
67 return;
68 }
69
71 $repository =
new RepositoryDB(
$DIC->database());
72 $instance = new self(
73 $repository,
74 $DIC->ui()->factory(),
75 $DIC->ui()->renderer(),
77 );
78
79 self::$modal_already_rendered = true;
80 $js_function = '<script>function triggerWebDAVModal(api_url){ $.ajax(api_url).done(function(data){ $(document).trigger("'
81 . $instance->getModalShowSignalId()
82 . '", "{}"); $("#' . self::MOUNT_INSTRUCTIONS_CONTENT_ID . '").html(data);}) }</script>';
83
84 $webdav_modal_html = $instance->getRenderedModal() . $js_function;
85
86 $tpl =
$DIC->ui()->mainTemplate();
87 $tpl->setVariable('WEBDAV_MODAL', $webdav_modal_html);
88 }
References $DIC.
Referenced by ILIAS\WebDAV\Mount\DocumentTableGUI\__construct().
◆ $modal
| Lightbox ILIAS\WebDAV\Mount\ModalGUI::$modal |
|
private |
◆ $modal_already_rendered
| bool ILIAS\WebDAV\Mount\ModalGUI::$modal_already_rendered = false |
|
staticprivate |
◆ MOUNT_INSTRUCTIONS_CONTENT_ID
| const string ILIAS\WebDAV\Mount\ModalGUI::MOUNT_INSTRUCTIONS_CONTENT_ID = 'webdav_mount_instructions_content' |
|
private |
The documentation for this class was generated from the following file: