Button
class Button extends AbstractComponent
Class Button component
Traits
Properties
string | $id | ID tag for the component. | from AbstractComponent |
string | $name | Name tag for the component. | from AbstractComponent |
string | $class | Class tag for the component. | from AbstractComponent |
string | $style | Contains the style for this component. | |
string | $text | Contains the text for this component. | |
string | $type | Contains the type for this component. | |
string | $link | Contains the link for this 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
Return the template path to render this component.
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
in
AbstractComponent
at line 55
__construct($parameters)
AbstractComponent constructor.
in
AbstractComponent
at line 71
string
toHtml()
Return this component rendered.
at line 49
string
getTemplatePath()
Return the template path to render this component.
in
AbstractComponent
at line 88
array
toArray()
Returns this object public properties to array.