Make a select box for a boolean choice (Yes/No) or display a checkbox. Add a
'use_checkbox' = true to the $params array to display a checkbox instead a select box
static public showYesNo ( $name, $value, $restrict_to, $params = [] ) : rand | ||
$name | select name | |
$value | preselected value. (default 0) | |
$restrict_to | allows to display only yes or no in the dropdown (default -1) | |
$params | Array of optional options (passed to showFromArray) | |
return | rand | value |