Rendering
class Rendering
Traits
Provides magic get, set, isset and unset implementations
Properties
protected Configurator | $configurator | ||
RendererGenerator | $engine | ||
TemplateParameterCollection | $parameters | Parameters used by the renderer |
Methods
Get all the parameters defined and/or used in all the templates
Return the renderer generator used by this instance
Return an instance of Renderer based on the current config
Get the templates defined in all the targs
Details
in
Configurable at line 30
mixed
__get(string $propName)
Magic getter
Will return $this->foo if it exists, then $this->getFoo() or will throw an exception if neither exists
in
Configurable at line 61
void
__set(string $propName, mixed $propValue)
Magic setter
Will call $this->setFoo($propValue) if it exists, otherwise it will set $this->foo. If $this->foo is a NormalizedCollection, we do not replace it, instead we clear() it then fill it back up. It will not overwrite an object with a different incompatible object (of a different, non-extending class) and it will throw an exception if the PHP type cannot match without incurring data loss.
in
Configurable at line 147
bool
__isset(string $propName)
Test whether a property is set
in
Configurable at line 164
void
__unset(string $propName)
Unset a property, if the class supports it
at line 44
__construct(Configurator $configurator)
Constructor
at line 55
array
getAllParameters()
Get all the parameters defined and/or used in all the templates
at line 85
RendererGenerator
getEngine()
Return the renderer generator used by this instance
at line 100
Renderer
getRenderer()
Return an instance of Renderer based on the current config
at line 110
array
getTemplates()
Get the templates defined in all the targs
at line 141
RendererGenerator
setEngine(string|RendererGenerator $engine)
Set the RendererGenerator instance used
NOTE: extra parameters are passed to the RendererGenerator's constructor