booleanInput() protected static method (available since version 2.0.9)
Generates a boolean input.
protected static string booleanInput ( $type, $name, $checked = false, $options = [] ) | ||
---|---|---|
$type | string |
The input type. This can be either |
$name | string |
The name attribute. |
$checked | boolean |
Whether the checkbox should be checked. |
$options | array |
The tag options in terms of name-value pairs. The following options are specially handled:
The rest of the options will be rendered as the attributes of the resulting checkbox tag. The values will be HTML-encoded using encode(). If a value is null, the corresponding attribute will not be rendered. See renderTagAttributes() for details on how attributes are being rendered. |
return | string |
The generated checkbox tag |
Please login to continue.