ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\UI\Renderer Interface Reference

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...
 

Detailed Description

An entity that renders components to a string output.

Author
Richard Klees richa.nosp@m.rd.k.nosp@m.lees@.nosp@m.conc.nosp@m.epts-.nosp@m.and-.nosp@m.train.nosp@m.ing..nosp@m.de

Definition at line 30 of file Renderer.php.

Member Function Documentation

◆ render()

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

Parameters
Component | Component[]$component
?Renderer$root of renderers in the chain to be used for rendering sub components.
Returns
string

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().

+ Here is the caller graph for this function:

◆ renderAsync()

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.

Parameters
Component | Component[]$component
?Renderer$root of renderers in the chain to be used for rendering sub components.
Returns
string

Implemented in ILIAS\UI\Implementation\DefaultRenderer, ILIAS\UI\Implementation\Render\DecoratedRenderer, and NullDefaultRenderer.


The documentation for this interface was generated from the following file: