53 parent::setDefaults();
55 $this->defaults[
'defaultValue'] =
false;
69 if (is_bool($newValue)) {
70 $this->value = $newValue;
71 } elseif ($newValue ===
"true") {
91 $label = $this->htmlLabel();
96 return "<p {$wrapperAttributes}>" .
97 "<button name=\"{$this->name}\" type=\"submit\"{$inputAttributes} value=\"{$value}\">{$label}</button>" .
htmlInputAttributes()
Returns string of HTML attributes for input element.
$value
Input elements's value.
$label
Input element - HTML label.
$errorMessage
Message that gets displayed in case of invalid input.
htmlHelpMessage()
Returns HTML-rendered helpMessage.
htmlWrapperAttributes()
Returns string of HTML attributes for element wrapper paragraph.
htmlMarker()
Returns elements' required-indicator.
$type
Input element type - HTML input type attribute.
$helpMessage
Extra help message.
$marker
Input element - HTML marker text that marks required fields.
htmlErrorMessage()
Returns HTML-rendered error message.
__toString()
Renders element to HTML.
setValue($newValue)
set the boolean element value
setDefaults()
collects initial values across subclasses
Abstract element classes.
Classes for HTML input-elements.