436. Class

436.1. Zend\Form\Element\MultiCheckbox

436.1.1. Methods

436.1.1.1. getValueOptions

getValueOptions()

@return array

436.1.1.2. setValueOptions

setValueOptions()

@param array $options

Return type:MultiCheckbox

436.1.1.3. setOptions

setOptions()

Set options for an element. Accepted options are: - label: label to associate with the element - label_attributes: attributes to use when the label is rendered - value_options: list of values and labels for the select options

Parameters:array|Traversable
Return type:MultiCheckbox|ElementInterface
Throws :InvalidArgumentException

436.1.1.4. setAttribute

setAttribute()

Set a single element attribute

Parameters:
  • string
  • mixed
Return type:

MultiCheckbox|ElementInterface

436.1.1.5. getValidator

getValidator()

Get validator

Return type:ValidatorInterface

436.1.1.6. getValueOptionsValues

getValueOptionsValues()

Get only the values from the options attribute

Return type:array

436.1.1.7. setValue

setValue()

Sets the value that should be selected.

Parameters:mixed – The value to set.
Return type:MultiCheckbox