ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
MakeSlateAsync.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer
;
4
5
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\supportsAsynchronousLoading
;
6
use
ILIAS\UI\Component\MainControls\Slate\Slate
;
7
13
trait
MakeSlateAsync
14
{
15
use Hasher;
16
17
24
protected
function
addAsyncLoadingCode
(
Slate
$slate,
supportsAsynchronousLoading
$item) :
Slate
25
{
26
if
($item->
supportsAsynchronousLoading
() ===
false
) {
27
return
$slate;
28
}
29
30
$serialize = $item->
getProviderIdentification
()->serialize();
31
$replace_signal = $slate->
getReplaceSignal
()->withAsyncRenderUrl(
"./gs_content.php?item={$this->hash($serialize)}"
);
32
33
$slate = $slate->appendOnFirstView($replace_signal);
34
35
return
$slate;
36
}
37
}
php
An exception for terminatinating execution or to throw for unit testing.
ILIAS\GlobalScreen\Scope\MainMenu\Factory\supportsAsynchronousLoading
Interface supportsAsynchronousLoading.
Definition:
supportsAsynchronousLoading.php:11
ILIAS\GlobalScreen\Scope\MainMenu\Factory\supportsAsynchronousLoading\supportsAsynchronousLoading
supportsAsynchronousLoading()
ILIAS\GlobalScreen\Scope\isGlobalScreenItem\getProviderIdentification
getProviderIdentification()
ILIAS\UI\Component\MainControls\Slate\Slate
This describes a Slate.
Definition:
Slate.php:18
ILIAS\UI\Component\MainControls\Slate\Slate\getReplaceSignal
getReplaceSignal()
Signal to replace the contents of the slate.
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer
Definition:
BaseTypeRenderer.php:1
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\MakeSlateAsync
trait MakeSlateAsync
Trait MakeSlateAsync.
Definition:
MakeSlateAsync.php:14
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\addAsyncLoadingCode
addAsyncLoadingCode(Slate $slate, supportsAsynchronousLoading $item)
Definition:
MakeSlateAsync.php:24
src
GlobalScreen
Scope
MainMenu
Collector
Renderer
MakeSlateAsync.php
Generated on Sat Oct 4 2025 20:01:11 for ILIAS by
1.9.4 (using
Doxyfile
)