ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
MakeSlateAsync.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
31{
32 use Hasher;
33
40 {
41 if ($item->supportsAsynchronousLoading() === false) {
42 return $slate;
43 }
44
45 $serialize = $item->getProviderIdentification()->serialize();
46 $replace_signal = $slate->getReplaceSignal()->withAsyncRenderUrl("./gs_content.php?item={$this->hash($serialize)}");
47
48 $slate = $slate->appendOnInView($replace_signal);
49
50 return $slate;
51 }
52}
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.
addAsyncLoadingCode(Slate $slate, supportsAsynchronousLoading $item)