ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
TestDecoratedRenderer Class Reference
+ Inheritance diagram for TestDecoratedRenderer:
+ Collaboration diagram for TestDecoratedRenderer:

Public Member Functions

 manipulate ()
 
- Public Member Functions inherited from ILIAS\UI\Implementation\Render\DecoratedRenderer
 __construct (Renderer $default)
 
 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
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.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
More...
 
 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...
 

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...
 
- Protected Member Functions inherited from ILIAS\UI\Implementation\Render\DecoratedRenderer
 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
 

Detailed Description

Definition at line 290 of file Base.php.

Member Function Documentation

◆ manipulate()

TestDecoratedRenderer::manipulate ( )

Definition at line 294 of file Base.php.

294 : void
295 {
296 $this->manipulate = true;
297 }

References manipulate().

Referenced by manipulate(), and manipulateRendering().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ manipulateRendering()

TestDecoratedRenderer::manipulateRendering (   $component,
Renderer  $root 
)
protected

Manipulates the rendering of one or multiple components by appending, prepending or exchanging their rendered content with custom adjustments.

Returns
string|null Return the manipulated rendering of the component or NULL if the component should be rendered native

Reimplemented from ILIAS\UI\Implementation\Render\DecoratedRenderer.

Definition at line 299 of file Base.php.

299 : ?string
300 {
301 if ($this->manipulate) {
302 return "This content was manipulated";
303 } else {
304 return null;
305 }
306 }

References manipulate().

+ Here is the call graph for this function:

Field Documentation

◆ $manipulate

TestDecoratedRenderer::$manipulate = false
private

Definition at line 292 of file Base.php.


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