public addRadiobutton ( string $name, array $values, string $checked = null, string $class = null ) : SpoonFormRadiobutton | ||
$name | string | The name of the element. |
$values | array | The possible values for the radio button. |
$checked | string | Should the element be checked? |
$class | string | Class(es) that will be applied on the element. |
Результат | SpoonFormRadiobutton |
public function addRadiobutton($name, array $values, $checked = null, $class = null)
{
$name = (string) $name;
$values = (array) $values;
$checked = $checked !== null ? (string) $checked : null;
$class = $class !== null ? (string) $class : 'fork-form-radio';
// create and return a radio button
return parent::addRadiobutton($name, $values, $checked, $class);
}