Zend Framework
2.4
|
Public Member Functions | |
setName ($name) | |
Set the name of this element. | |
getName () | |
Retrieve the element name. | |
setOptions ($options) | |
Set options for an element. | |
setOption ($key, $value) | |
Set a single option for an element. | |
getOptions () | |
get the defined options | |
getOption ($option) | |
return the specified option | |
setAttribute ($key, $value) | |
Set a single element attribute. | |
getAttribute ($key) | |
Retrieve a single element attribute. | |
hasAttribute ($key) | |
Return true if a specific attribute is set. | |
setAttributes ($arrayOrTraversable) | |
Set many attributes at once. | |
getAttributes () | |
Retrieve all attributes at once. | |
setValue ($value) | |
Set the value of the element. | |
getValue () | |
Retrieve the element value. | |
setLabel ($label) | |
Set the label (if any) used for this element. | |
getLabel () | |
Retrieve the label (if any) used for this element. | |
setMessages ($messages) | |
Set a list of messages to report when validation fails. | |
getMessages () | |
Get validation error messages, if any. | |
getAttribute | ( | $key | ) |
getLabel | ( | ) |
getMessages | ( | ) |
Get validation error messages, if any.
Returns a list of validation failure messages, if any.
Implemented in Element.
getName | ( | ) |
getOption | ( | $option | ) |
getOptions | ( | ) |
getValue | ( | ) |
Retrieve the element value.
Implemented in Element, MonthSelect, DateTimeSelect, DateSelect, and Csrf.
hasAttribute | ( | $key | ) |
Return true if a specific attribute is set.
string | $key |
Implemented in Element.
setAttribute | ( | $key, | |
$value | |||
) |
Set a single element attribute.
string | $key | |
mixed | $value |
Implemented in Element, Select, and MultiCheckbox.
setAttributes | ( | $arrayOrTraversable | ) |
Set many attributes at once.
Implementation will decide if this will overwrite or merge.
array | \Traversable | $arrayOrTraversable |
Implemented in Element.
setLabel | ( | $label | ) |
Set the label (if any) used for this element.
$label |
Implemented in Element.
setMessages | ( | $messages | ) |
Set a list of messages to report when validation fails.
array | \Traversable | $messages |
setName | ( | $name | ) |
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.
string | $name |
Implemented in Element.
setOption | ( | $key, | |
$value | |||
) |
Set a single option for an element.
string | $key | |
mixed | $value |
Implemented in Element.
setOptions | ( | $options | ) |
Set options for an element.
array | \Traversable | $options |
Implemented in Form, Select, Element, Collection, MonthSelect, MultiCheckbox, Fieldset, DateTimeSelect, Checkbox, DateTime, DateSelect, InputFilterProviderFieldset, Csrf, and Captcha.
setValue | ( | $value | ) |
Set the value of the element.
mixed | $value |
Implemented in Element, MonthSelect, DateTimeSelect, Checkbox, MultiCheckbox, and DateSelect.