ILIAS  release_8 Revision v8.24
MakeSlateAsync.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
21
24
30{
31 use Hasher;
32
39 {
40 if ($item->supportsAsynchronousLoading() === false) {
41 return $slate;
42 }
43
44 $serialize = $item->getProviderIdentification()->serialize();
45 $replace_signal = $slate->getReplaceSignal()->withAsyncRenderUrl("./gs_content.php?item={$this->hash($serialize)}");
46
47 $slate = $slate->appendOnInView($replace_signal);
48
49 return $slate;
50 }
51}
Interface supportsAsynchronousLoading Types, which implement this interface, can load their content a...
appendOnInView(Signal $signal)
A Signal that is triggered when the slate "comes into view", i.e.
getReplaceSignal()
Signal to replace the contents of the slate.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addAsyncLoadingCode(Slate $slate, supportsAsynchronousLoading $item)