742. Function

742.1. Zend\Form\setName

ZendFormsetName()

Set the name of this element

In most cases, this will proxy to the attributes for storage, but is present to indicate that elements are generally named.

Parameters:string
Return type:ElementInterface

743. Function

743.1. Zend\Form\getName

ZendFormgetName()

Retrieve the element name

Return type:string

744. Function

744.1. Zend\Form\setOptions

ZendFormsetOptions()

Set options for an element

Parameters:array|Traversable
Return type:ElementInterface

745. Function

745.1. Zend\Form\getOptions

ZendFormgetOptions()

get the defined options

Return type:array

746. Function

746.1. Zend\Form\getOption

ZendFormgetOption()

return the specified option

Parameters:string
Return type:null|mixed

747. Function

747.1. Zend\Form\setAttribute

ZendFormsetAttribute()

Set a single element attribute

Parameters:
  • string
  • mixed
Return type:

ElementInterface

748. Function

748.1. Zend\Form\getAttribute

ZendFormgetAttribute()

Retrieve a single element attribute

Parameters:string
Return type:mixed

749. Function

749.1. Zend\Form\hasAttribute

ZendFormhasAttribute()

Return true if a specific attribute is set

Parameters:string
Return type:bool

750. Function

750.1. Zend\Form\setAttributes

ZendFormsetAttributes()

Set many attributes at once

Implementation will decide if this will overwrite or merge.

Parameters:array|Traversable
Return type:ElementInterface

751. Function

751.1. Zend\Form\getAttributes

ZendFormgetAttributes()

Retrieve all attributes at once

Return type:array|Traversable

752. Function

752.1. Zend\Form\setValue

ZendFormsetValue()

Set the value of the element

Parameters:mixed
Return type:ElementInterface

753. Function

753.1. Zend\Form\getValue

ZendFormgetValue()

Retrieve the element value

Return type:mixed

754. Function

754.1. Zend\Form\setLabel

ZendFormsetLabel()

Set the label (if any) used for this element

Parameters:$label
Return type:ElementInterface

755. Function

755.1. Zend\Form\getLabel

ZendFormgetLabel()

Retrieve the label (if any) used for this element

Return type:string

756. Function

756.1. Zend\Form\setMessages

ZendFormsetMessages()

Set a list of messages to report when validation fails

Parameters:array|Traversable
Return type:ElementInterface

757. Function

757.1. Zend\Form\getMessages

ZendFormgetMessages()

Get validation error messages, if any

Returns a list of validation failure messages, if any.

Return type:array|Traversable