ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Public Member Functions | |||||||
manipulate () | |||||||
![]() | |||||||
__construct (Renderer $default) | |||||||
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, ?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
| |||||||
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.
| |||||||
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... | |||||||
withAdditionalContext (Component $context) | |||||||
Get a new renderer with an additional context. More... | |||||||
Protected Member Functions | |
manipulateRendering ($component, Renderer $root) | |
Manipulates the rendering of one or multiple components by appending, prepending or exchanging their rendered content with custom adjustments. More... | |
![]() | |
manipulateRendering ($component, Renderer $root) | |
Manipulates the rendering of one or multiple components by appending, prepending or exchanging their rendered content with custom adjustments. More... | |
manipulateAsyncRendering ($component, Renderer $root) | |
Manipulates the async Rendering separately if needed. More... | |
renderDefault ($component, ?Renderer $root=null) | |
Renders the component by default. More... | |
Private Attributes | |
$manipulate = false | |
TestDecoratedRenderer::manipulate | ( | ) |
Definition at line 222 of file Base.php.
References manipulate().
Referenced by manipulate(), and manipulateRendering().
|
protected |
Manipulates the rendering of one or multiple components by appending, prepending or exchanging their rendered content with custom adjustments.
Reimplemented from ILIAS\UI\Implementation\Render\DecoratedRenderer.
Definition at line 227 of file Base.php.
References manipulate().