|
| | __construct (Render\Loader $component_renderer_loader, JavaScriptBinding $java_script_binding, array $with_stub_renderings=[], protected array $with_additional_contexts=[],) |
| |
| | _getRendererFor (IComponent $component) |
| |
| | getRendererFor (IComponent $component) |
| |
| | _getContexts () |
| |
| | getComponentCanonicalNameAttribute (IComponent $component) |
| |
| | __construct (private Render\Loader $component_renderer_loader, private JavaScriptBinding $java_script_binding,) |
| |
| | 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...
|
| |
Definition at line 226 of file Base.php.
◆ __construct()
| TestDefaultRenderer::__construct |
( |
Render\Loader |
$component_renderer_loader, |
|
|
JavaScriptBinding |
$java_script_binding, |
|
|
array |
$with_stub_renderings = [], |
|
|
protected array |
$with_additional_contexts = [] |
|
) |
| |
Definition at line 230 of file Base.php.
References $c, and ILIAS\GlobalScreen\Provider\__construct().
236 $this->with_stub_renderings =
array_map(
function ($component) {
237 return get_class($component);
pushContext(Component $component)
Adds a component to the current context stack.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
array $with_stub_renderings
__construct(Container $dic, ilPlugin $plugin)
◆ _getContexts()
| TestDefaultRenderer::_getContexts |
( |
| ) |
|
Definition at line 258 of file Base.php.
getContexts()
Returns the current context stack, where most recently added components are last. ...
◆ _getRendererFor()
| TestDefaultRenderer::_getRendererFor |
( |
IComponent |
$component | ) |
|
Definition at line 245 of file Base.php.
245 : Render\ComponentRenderer
getRendererFor(IComponent $component)
◆ getComponentCanonicalNameAttribute()
| TestDefaultRenderer::getComponentCanonicalNameAttribute |
( |
IComponent |
$component | ) |
|
Definition at line 263 of file Base.php.
265 return str_replace(
' ',
'-', strtolower($component->getCanonicalName()));
◆ getRendererFor()
| TestDefaultRenderer::getRendererFor |
( |
IComponent |
$component | ) |
|
Definition at line 250 of file Base.php.
250 : Render\ComponentRenderer
252 if (in_array(get_class($component), $this->with_stub_renderings)) {
255 return parent::getRendererFor($component);
◆ $with_stub_renderings
| array TestDefaultRenderer::$with_stub_renderings = [] |
|
protected |
The documentation for this class was generated from the following file: