AbstractComponent
abstract class AbstractComponent
Class AbstractComponent
Traits
Properties
string | $id | ID tag for the component. | |
string | $name | Name tag for the component. | |
string | $class | Class tag for the component. | |
string | $style | Class style for the component. |
Methods
Intercepts calls to non-existent getters / setters Looks at the beginning of $method to see if it's "get", "set", "has" Uses preg_match() to extract the 2nd part of the match, which should produce the property name
AbstractComponent constructor.
Return this component rendered.
Return the template path to render this component.
Returns this object public properties to array.
Details
in
MagicTrait
at line 26
bool
__isset(string $key)
Magic isset.
in
MagicTrait
at line 38
mixed|null
__get(string $key)
Magic getter.
in
MagicTrait
at line 51
__set(string $key, mixed $value)
Magic setter.
in
MagicTrait
at line 72
$this|bool|mixed|string|null
__call(string $method, array $params)
Intercepts calls to non-existent getters / setters Looks at the beginning of $method to see if it's "get", "set", "has" Uses preg_match() to extract the 2nd part of the match, which should produce the property name
at line 55
__construct($parameters)
AbstractComponent constructor.
at line 71
string
toHtml()
Return this component rendered.
at line 81
abstract string
getTemplatePath()
Return the template path to render this component.
at line 88
array
toArray()
Returns this object public properties to array.