ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
An entity that renders components to a string output. More...
Public Member Functions | |
render ($component, ?Renderer $root=null) | |
Render given component. More... | |
renderAsync ($component, ?Renderer $root=null) | |
Same as render, except that this version also returns any javascript code bound to the on load event, wrapped in a script tag. More... | |
An entity that renders components to a string output.
Definition at line 30 of file Renderer.php.
ILIAS\UI\Renderer::render | ( | $component, | |
?Renderer | $root = null |
||
) |
Render given component.
If an array of components is passed, this method returns a concatenated output of each rendered component, in the same order as given in the array
Component | Component[] | $component | |
?Renderer | $root of renderers in the chain to be used for rendering sub components. |
Implemented in ILIAS\UI\Implementation\DefaultRenderer, ILIAS\UI\Implementation\Render\DecoratedRenderer, and NullDefaultRenderer.
Referenced by ILIAS\UI\examples\Layout\Page\Standard\getDemoEntryPersonalWorkspace(), ILIAS\UI\examples\Layout\Page\Standard\pagedemoContent(), and ILIAS\UI\Implementation\Render\DecoratedRenderer\renderDefault().
ILIAS\UI\Renderer::renderAsync | ( | $component, | |
?Renderer | $root = null |
||
) |
Same as render, except that this version also returns any javascript code bound to the on load event, wrapped in a script tag.
All javascript code stored for rendering will be removed after this output so it will not be rendered twice if render async is called multiple times.
Component | Component[] | $component | |
?Renderer | $root of renderers in the chain to be used for rendering sub components. |
Implemented in ILIAS\UI\Implementation\DefaultRenderer, ILIAS\UI\Implementation\Render\DecoratedRenderer, and NullDefaultRenderer.