Alert
class Alert extends AbstractComponent
Class Alert 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 | Class style for the component. | from AbstractComponent |
bool | $dismissible | Contains if component is dismissible. | |
string | $message | Contains the text message 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 35
string
getTemplatePath()
Return the template path to render this component.
in
AbstractComponent
at line 88
array
toArray()
Returns this object public properties to array.