public addMultiCheckbox ( string $name, array $values, mixed $checked = null, string $class = null ) : SpoonFormMultiCheckbox | ||
$name | string | The name of the element. |
$values | array | The values for the checkboxes. |
$checked | mixed | Should the checkboxes be checked? |
$class | string | Class(es) that will be applied on the element. |
return | SpoonFormMultiCheckbox |
public function addMultiCheckbox($name, array $values, $checked = null, $class = null)
{
$name = (string) $name;
$values = (array) $values;
$checked = $checked !== null ? (array) $checked : null;
$class = $class !== null ? (string) $class : 'fork-form-multi-checkbox';
// create and return a multi checkbox
return parent::addMultiCheckbox($name, $values, $checked, $class);
}