3declare(strict_types=1);
 
   43            $document = $this->
repository->getMountInstructionsByLanguage($this->
lng->getUserLanguage());
 
   44            $title = $document->getTitle();
 
   45        } 
catch (InvalidArgumentException 
$e) {
 
   46            $title = $this->
lng->txt(
'webfolder_instructions_titletext');
 
   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);
 
   56        return $this->ui_renderer->render($this->
modal);
 
   61        return $this->
modal->getShowSignal()->getId();
 
   68        if (self::$modal_already_rendered) {
 
   76        self::$modal_already_rendered = 
true;
 
   77        $js_function = 
'<script>function triggerWebDAVModal(api_url){ $.ajax(api_url).done(function(data){ $(document).trigger("' . $instance->getModalShowSignalId() . 
'", "{}"); $("#' . self::MOUNT_INSTRUCTIONS_CONTENT_ID . 
'").html(data);}) }</script>';
 
   79        $webdav_modal_html = $instance->getRenderedModal() . $js_function;
 
   82        $tpl->setVariable(
'WEBDAV_MODAL', $webdav_modal_html);
 
static bool $modal_already_rendered
 
const MOUNT_INSTRUCTIONS_CONTENT_ID
 
ilWebDAVMountInstructionsRepositoryImpl $repository
 
static maybeRenderWebDAVModalInGlobalTpl()
 
__construct(ilWebDAVMountInstructionsRepositoryImpl $repository, Factory $ui_factory, Renderer $ui_renderer, ilLanguage $lng)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This is how the factory for UI elements looks.
 
An entity that renders components to a string output.
 
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl