|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
An entity that renders components to a string output. More...
Inheritance diagram for ILIAS\UI\Renderer:
Collaboration diagram for ILIAS\UI\Renderer: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 NullDefaultRenderer, ILIAS\UI\Implementation\Render\DecoratedRenderer, and ILIAS\UI\Implementation\DefaultRenderer.
Referenced by ilContProfileTableGUI\fillRow(), ILIAS\UI\examples\Layout\Page\Standard\getDemoEntryPersonalWorkspace(), ILIAS\UI\examples\Layout\Page\Standard\pagedemoContent(), ILIAS\LegalDocuments\PageFragment\PageContent\render(), and ILIAS\UI\Implementation\Render\DecoratedRenderer\renderDefault().
Here is the caller graph for this function:| 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 NullDefaultRenderer, ILIAS\UI\Implementation\DefaultRenderer, and ILIAS\UI\Implementation\Render\DecoratedRenderer.