46 $this->lng->loadLanguageModule(
"ui");
47 return new $name($this->ui_factory, $this->tpl_factory, $this->lng, $this->js_binding);
59 $class = get_class($component);
60 $parts = explode(
"\\", $class);
61 $parts[count($parts) - 1] =
"Renderer";
62 $base = implode(
"\\", $parts);
An exception for terminatinating execution or to throw for unit testing.
getRendererNameFor(Component $component)
Get the name for the renderer of Component class.
__construct(RootFactory $ui_factory, TemplateFactory $tpl_factory, \ilLanguage $lng, JavaScriptBinding $js_binding)
getJSBinding()
@inheritdocs
getRendererInContext(Component $component, array $contexts)
@inheritdocs
A component is the most general form of an entity in the UI.
This is how the factory for UI elements looks.
Provides methods to interface with javascript.
This is the interface that components should use if they want to load specific renderers.
Interface for a factory that provides templates.