ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | ||||
_getRendererFor (IComponent $component) | ||||
_getContexts () | ||||
![]() | ||||
__construct (Render\Loader $component_renderer_loader) | ||||
render ($component) | ||||
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
| ||||
renderAsync ($component) | ||||
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.
| ||||
withAdditionalContext (Component $context) | ||||
Get a new renderer with an additional context.A context makes it possible to use another renderer for (some) components when they are renderer as subcomponents of a certain components. The use case that spawned this functionality is the observation, that e.g. items representing repository objects are renderer in different lists, where the individual items look different every time but are morally the same item. Another use case could be a special rendering of input fields in filters over tables.If a component wants to render itself differently in different contexts, it must implement a RendererFactory. The class \ILIAS\UI\Implementation\Render\FSLoader contains directions how to do that.
| ||||
render ($component) | ||||
Render given component. More... | ||||
renderAsync ($component) | ||||
Same as render, except that this version also returns any javascript code bound to the on load event, wrapped in a script tag. More... | ||||
withAdditionalContext (Component $context) | ||||
Get a new renderer with an additional context. More... | ||||
Additional Inherited Members | |
![]() | |
getRendererFor (Component $component) | |
Get a renderer for a certain Component class. More... | |
getContexts () | |
Get the contexts that are added via withAdditionalContext where most recently added contexts come last. More... | |
TestDefaultRenderer::_getContexts | ( | ) |
Definition at line 160 of file Base.php.
References ILIAS\UI\Implementation\DefaultRenderer\getContexts().
TestDefaultRenderer::_getRendererFor | ( | IComponent | $component | ) |
Definition at line 156 of file Base.php.
References ILIAS\UI\Implementation\DefaultRenderer\getRendererFor().