__construct()
clearAttributes()
clearLabelOptions()
getAttribute()
getAttributes()
getLabel()
getLabelAttributes()
getLabelOption()
getLabelOptions()
getMessages()
getName()
getOption()
getOptions()
getValue()
hasAttribute()
hasLabelOption()
init()
removeAttribute()
removeAttributes()
removeLabelOption()
removeLabelOptions()
setAttribute()
setAttributes()
setLabel()
setLabelAttributes()
setLabelOption()
setLabelOptions()
setMessages()
setName()
setOption()
setOptions()
setValue()
$attributes
$label
$labelAttributes
$labelOptions
$messages
$options
$value
__construct(null | int | string $name, array $options)
nullintstring
Optional name for the element
array
Optional options for the element
\Zend\Form\Exception\InvalidArgumentException |
---|
clearAttributes() : \Zend\Form\Element | \Zend\Form\ElementInterface
clearLabelOptions() : \Zend\Form\Element | \Zend\Form\ElementInterface
getAttribute($key) : mixed | null
mixed
null
getAttributes() : array | \Traversable
array
\Traversable
getLabel() : null | string
null
string
getLabelAttributes() : array
array
getLabelOption($key) : mixed | null
mixed
null
getLabelOptions() : array
array
getMessages() : array | \Traversable
Returns a list of validation failure messages, if any.
array
\Traversable
getName() : string | int
string
int
getOption(string $option) : NULL | mixed
string
NULL
mixed
getOptions() : array
array
getValue() : mixed
mixed
hasAttribute(string $key) : bool
string
bool
hasLabelOption(string $key) : bool
string
bool
init() : void
It allows to perform various operations (add elements...)
setAttribute(string $key, mixed $value) : \Zend\Form\Element | \Zend\Form\ElementInterface
setAttributes(array | \Traversable $arrayOrTraversable) : \Zend\Form\Element | \Zend\Form\ElementInterface
Implementation will decide if this will overwrite or merge.
array\Traversable
\Zend\Form\Exception\InvalidArgumentException |
---|
setLabel($label) : \Zend\Form\Element | \Zend\Form\ElementInterface
setLabelAttributes(array $labelAttributes) : \Zend\Form\Element | \Zend\Form\ElementInterface
setLabelOption(string $key, mixed $value) : \Zend\Form\Element | \Zend\Form\ElementInterface
setLabelOptions(array | \Traversable $arrayOrTraversable) : \Zend\Form\Element | \Zend\Form\ElementInterface
Implementation will decide if this will overwrite or merge.
array\Traversable
\Zend\Form\Exception\InvalidArgumentException |
---|
setMessages(array | \Traversable $messages) : \Zend\Form\Element | \Zend\Form\ElementInterface
array\Traversable
\Zend\Form\Exception\InvalidArgumentException |
---|
setName(string $name) : \Zend\Form\Element | \Zend\Form\ElementInterface
In most cases, this will proxy to the attributes for storage, but is present to indicate that elements are generally named.
string
setOption(string $key, mixed $value) : \Zend\Form\self
string
mixed
\Zend\Form\self
setOptions(array | \Traversable $options) : \Zend\Form\Element | \Zend\Form\ElementInterface
Accepted options are: - label: label to associate with the element - label_attributes: attributes to use when the label is rendered - label_options: label specific options
array\Traversable
\Zend\Form\Exception\InvalidArgumentException |
---|
$attributes : array
$label : null | string
$labelAttributes : array
$labelOptions : array
$value : mixed