|
| __construct (Render\Loader $component_renderer_loader, JavaScriptBinding $java_script_binding, \ILIAS\Language\Language $language, 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, private \ILIAS\Language\Language $language,) |
|
| 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, |
|
|
\ILIAS\Language\Language |
$language, |
|
|
array |
$with_stub_renderings = [] , |
|
|
protected array |
$with_additional_contexts = [] |
|
) |
| |
Definition at line 230 of file Base.php.
References $c, and ILIAS\GlobalScreen\Provider\__construct().
237 $this->with_stub_renderings =
array_map(
function ($component) {
238 return get_class($component);
pushContext(Component $component)
Adds a component to the current context stack.
array $with_stub_renderings
__construct(Container $dic, ilPlugin $plugin)
◆ _getContexts()
TestDefaultRenderer::_getContexts |
( |
| ) |
|
Definition at line 259 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 246 of file Base.php.
246 : Render\ComponentRenderer
getRendererFor(IComponent $component)
◆ getComponentCanonicalNameAttribute()
TestDefaultRenderer::getComponentCanonicalNameAttribute |
( |
IComponent |
$component | ) |
|
Definition at line 264 of file Base.php.
266 return str_replace(
' ',
'-', strtolower($component->getCanonicalName()));
◆ getRendererFor()
TestDefaultRenderer::getRendererFor |
( |
IComponent |
$component | ) |
|
Definition at line 251 of file Base.php.
251 : Render\ComponentRenderer
253 if (in_array(get_class($component), $this->with_stub_renderings)) {
256 return parent::getRendererFor($component);
◆ $with_stub_renderings
array TestDefaultRenderer::$with_stub_renderings = [] |
|
protected |
The documentation for this class was generated from the following file: