ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\UI\Implementation\Render\LoaderResourceRegistryWrapper Class Reference

Registers resources for retreived renderers at a ResourceRegistry. More...

+ Inheritance diagram for ILIAS\UI\Implementation\Render\LoaderResourceRegistryWrapper:
+ Collaboration diagram for ILIAS\UI\Implementation\Render\LoaderResourceRegistryWrapper:

Public Member Functions

 __construct (ResourceRegistry $resource_registry, Loader $loader)
 
 getRendererFor (Component $component, array $contexts)
 @inheritdocs More...
 
 getRendererFactoryFor (Component $component)
 @inheritdocs More...
 
 getRendererFor (Component $component, array $contexts)
 Get a renderer for a certain Component class. More...
 
 getRendererFactoryFor (Component $component)
 Get a factory for a renderer for a certain component class. More...
 

Private Attributes

ResourceRegistry $resource_registry
 
Loader $loader
 

Detailed Description

Registers resources for retreived renderers at a ResourceRegistry.

Definition at line 28 of file LoaderResourceRegistryWrapper.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\UI\Implementation\Render\LoaderResourceRegistryWrapper::__construct ( ResourceRegistry  $resource_registry,
Loader  $loader 
)

Member Function Documentation

◆ getRendererFactoryFor()

ILIAS\UI\Implementation\Render\LoaderResourceRegistryWrapper::getRendererFactoryFor ( Component  $component)

@inheritdocs

Implements ILIAS\UI\Implementation\Render\Loader.

Definition at line 52 of file LoaderResourceRegistryWrapper.php.

52 : RendererFactory
53 {
54 return $this->loader->getRendererFactoryFor($component);
55 }

◆ getRendererFor()

ILIAS\UI\Implementation\Render\LoaderResourceRegistryWrapper::getRendererFor ( Component  $component,
array  $contexts 
)

@inheritdocs

Implements ILIAS\UI\Implementation\Render\Loader.

Definition at line 42 of file LoaderResourceRegistryWrapper.php.

42 : ComponentRenderer
43 {
44 $renderer = $this->loader->getRendererFor($component, $contexts);
45 $renderer->registerResources($this->resource_registry);
46 return $renderer;
47 }
$renderer

References $renderer.

Field Documentation

◆ $loader

Loader ILIAS\UI\Implementation\Render\LoaderResourceRegistryWrapper::$loader
private

◆ $resource_registry

ResourceRegistry ILIAS\UI\Implementation\Render\LoaderResourceRegistryWrapper::$resource_registry
private

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