Form/Element/Multiselect.php
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Form
- Subpackage
- Element
\Zend_Form_Element_Multiselect
- Parent(s)
- \Zend_Form_Element_Select < \Zend_Form_Element_Multi < \Zend_Form_Element_Xhtml < \Zend_Form_Element
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Version
- $Id: Multiselect.php 24593 2012-01-05 20:35:02Z matthew $
Constants
DECORATOR
= 'DECORATOR'- Inherited_from
- \Zend_Form_Element::DECORATOR
- Inherited_from
- \Zend_Form_Element_Xhtml::DECORATOR
- Inherited_from
- \Zend_Form_Element_Multi::DECORATOR
- Inherited_from
- \Zend_Form_Element_Select::DECORATOR
FILTER
= 'FILTER'- Inherited_from
- \Zend_Form_Element::FILTER
- Inherited_from
- \Zend_Form_Element_Xhtml::FILTER
- Inherited_from
- \Zend_Form_Element_Multi::FILTER
- Inherited_from
- \Zend_Form_Element_Select::FILTER
VALIDATE
= 'VALIDATE'- Inherited_from
- \Zend_Form_Element::VALIDATE
- Inherited_from
- \Zend_Form_Element_Xhtml::VALIDATE
- Inherited_from
- \Zend_Form_Element_Multi::VALIDATE
- Inherited_from
- \Zend_Form_Element_Select::VALIDATE
Properties

bool $_allowEmpty = truetrueDetails- Type
- bool
- Inherited_from
- \Zend_Form_Element::$$_allowEmpty
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_allowEmpty
- Inherited_from
- \Zend_Form_Element_Multi::$$_allowEmpty
- Inherited_from
- \Zend_Form_Element_Select::$$_allowEmpty

bool $_autoInsertNotEmptyValidator = truetrueDetails- Type
- bool
- Inherited_from
- \Zend_Form_Element::$$_autoInsertNotEmptyValidator
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_autoInsertNotEmptyValidator
- Inherited_from
- \Zend_Form_Element_Multi::$$_autoInsertNotEmptyValidator
- Inherited_from
- \Zend_Form_Element_Select::$$_autoInsertNotEmptyValidator

string $_belongsTo- Type
- string
- Inherited_from
- \Zend_Form_Element::$$_belongsTo
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_belongsTo
- Inherited_from
- \Zend_Form_Element_Multi::$$_belongsTo
- Inherited_from
- \Zend_Form_Element_Select::$$_belongsTo

array $_decorators = array()array()Details- Type
- array
- Inherited_from
- \Zend_Form_Element::$$_decorators
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_decorators
- Inherited_from
- \Zend_Form_Element_Multi::$$_decorators
- Inherited_from
- \Zend_Form_Element_Select::$$_decorators

string $_description- Type
- string
- Inherited_from
- \Zend_Form_Element::$$_description
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_description
- Inherited_from
- \Zend_Form_Element_Multi::$$_description
- Inherited_from
- \Zend_Form_Element_Select::$$_description

bool $_disableLoadDefaultDecorators = falsefalseDetails- Type
- bool
- Inherited_from
- \Zend_Form_Element::$$_disableLoadDefaultDecorators
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_disableLoadDefaultDecorators
- Inherited_from
- \Zend_Form_Element_Multi::$$_disableLoadDefaultDecorators
- Inherited_from
- \Zend_Form_Element_Select::$$_disableLoadDefaultDecorators

string $_errorMessageSeparator = '; ''; 'Details- Type
- string
- Inherited_from
- \Zend_Form_Element::$$_errorMessageSeparator
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_errorMessageSeparator
- Inherited_from
- \Zend_Form_Element_Multi::$$_errorMessageSeparator
- Inherited_from
- \Zend_Form_Element_Select::$$_errorMessageSeparator

array $_errorMessages = array()array()Details- Type
- array
- Inherited_from
- \Zend_Form_Element::$$_errorMessages
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_errorMessages
- Inherited_from
- \Zend_Form_Element_Multi::$$_errorMessages
- Inherited_from
- \Zend_Form_Element_Select::$$_errorMessages

array $_errors = array()array()Details- Type
- array
- Inherited_from
- \Zend_Form_Element::$$_errors
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_errors
- Inherited_from
- \Zend_Form_Element_Multi::$$_errors
- Inherited_from
- \Zend_Form_Element_Select::$$_errors

array $_filters = array()array()Details- Type
- array
- Inherited_from
- \Zend_Form_Element::$$_filters
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_filters
- Inherited_from
- \Zend_Form_Element_Multi::$$_filters
- Inherited_from
- \Zend_Form_Element_Select::$$_filters

bool $_ignore = falsefalseDetails- Type
- bool
- Inherited_from
- \Zend_Form_Element::$$_ignore
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_ignore
- Inherited_from
- \Zend_Form_Element_Multi::$$_ignore
- Inherited_from
- \Zend_Form_Element_Select::$$_ignore

bool $_isError = falsefalseDetails- Type
- bool
- Inherited_from
- \Zend_Form_Element::$$_isError
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_isError
- Inherited_from
- \Zend_Form_Element_Multi::$$_isError
- Inherited_from
- \Zend_Form_Element_Select::$$_isError

bool $_isErrorForced = falsefalseDetails- Type
- bool
- Inherited_from
- \Zend_Form_Element::$$_isErrorForced
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_isErrorForced
- Inherited_from
- \Zend_Form_Element_Multi::$$_isErrorForced
- Inherited_from
- \Zend_Form_Element_Select::$$_isErrorForced

bool $_isPartialRendering = falseThis is to allow execution of logic inside the render() methods of child elements during the magic call while skipping the parent render() method.
falseDetails- Type
- bool
- Inherited_from
- \Zend_Form_Element::$$_isPartialRendering
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_isPartialRendering
- Inherited_from
- \Zend_Form_Element_Multi::$$_isPartialRendering
- Inherited_from
- \Zend_Form_Element_Select::$$_isPartialRendering

string $_label- Type
- string
- Inherited_from
- \Zend_Form_Element::$$_label
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_label
- Inherited_from
- \Zend_Form_Element_Multi::$$_label
- Inherited_from
- \Zend_Form_Element_Select::$$_label

array $_loaders = array()array()Details- Type
- array
- Inherited_from
- \Zend_Form_Element::$$_loaders
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_loaders
- Inherited_from
- \Zend_Form_Element_Multi::$$_loaders
- Inherited_from
- \Zend_Form_Element_Select::$$_loaders

array $_messages = array()array()Details- Type
- array
- Inherited_from
- \Zend_Form_Element::$$_messages
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_messages
- Inherited_from
- \Zend_Form_Element_Multi::$$_messages
- Inherited_from
- \Zend_Form_Element_Select::$$_messages

string $_name- Type
- string
- Inherited_from
- \Zend_Form_Element::$$_name
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_name
- Inherited_from
- \Zend_Form_Element_Multi::$$_name
- Inherited_from
- \Zend_Form_Element_Select::$$_name

int $_order- Type
- int
- Inherited_from
- \Zend_Form_Element::$$_order
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_order
- Inherited_from
- \Zend_Form_Element_Multi::$$_order
- Inherited_from
- \Zend_Form_Element_Select::$$_order

bool $_registerInArrayValidator = truetrueDetails- Type
- bool
- Inherited_from
- \Zend_Form_Element_Multi::$$_registerInArrayValidator
- Inherited_from
- \Zend_Form_Element_Select::$$_registerInArrayValidator

bool $_required = falsefalseDetails- Type
- bool
- Inherited_from
- \Zend_Form_Element::$$_required
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_required
- Inherited_from
- \Zend_Form_Element_Multi::$$_required
- Inherited_from
- \Zend_Form_Element_Select::$$_required

string $_separator = '<br />''.
'<br />'Details- Type
- string
- Inherited_from
- \Zend_Form_Element_Multi::$$_separator
- Inherited_from
- \Zend_Form_Element_Select::$$_separator

array $_translated = array()array()Details- Type
- array
- Inherited_from
- \Zend_Form_Element_Multi::$$_translated
- Inherited_from
- \Zend_Form_Element_Select::$$_translated

\Zend_Translate $_translator- Type
- \Zend_Translate
- Inherited_from
- \Zend_Form_Element::$$_translator
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_translator
- Inherited_from
- \Zend_Form_Element_Multi::$$_translator
- Inherited_from
- \Zend_Form_Element_Select::$$_translator

bool $_translatorDisabled = falsefalseDetails- Type
- bool
- Inherited_from
- \Zend_Form_Element::$$_translatorDisabled
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_translatorDisabled
- Inherited_from
- \Zend_Form_Element_Multi::$$_translatorDisabled
- Inherited_from
- \Zend_Form_Element_Select::$$_translatorDisabled

string $_type- Type
- string
- Inherited_from
- \Zend_Form_Element::$$_type
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_type
- Inherited_from
- \Zend_Form_Element_Multi::$$_type
- Inherited_from
- \Zend_Form_Element_Select::$$_type

array $_validatorRules = array()array()Details- Type
- array
- Inherited_from
- \Zend_Form_Element::$$_validatorRules
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_validatorRules
- Inherited_from
- \Zend_Form_Element_Multi::$$_validatorRules
- Inherited_from
- \Zend_Form_Element_Select::$$_validatorRules

array $_validators = array()array()Details- Type
- array
- Inherited_from
- \Zend_Form_Element::$$_validators
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_validators
- Inherited_from
- \Zend_Form_Element_Multi::$$_validators
- Inherited_from
- \Zend_Form_Element_Select::$$_validators

mixed $_value- Type
- mixed
- Inherited_from
- \Zend_Form_Element::$$_value
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_value
- Inherited_from
- \Zend_Form_Element_Multi::$$_value
- Inherited_from
- \Zend_Form_Element_Select::$$_value

\Zend_View_Interface $_view- Type
- \Zend_View_Interface
- Inherited_from
- \Zend_Form_Element::$$_view
- Inherited_from
- \Zend_Form_Element_Xhtml::$$_view
- Inherited_from
- \Zend_Form_Element_Multi::$$_view
- Inherited_from
- \Zend_Form_Element_Select::$$_view

string $helper = 'formSelect''formSelect'Details- Type
- string

array $options = array()array()Details- Type
- array
- Inherited_from
- \Zend_Form_Element_Multi::$$options
- Inherited_from
- \Zend_Form_Element_Select::$$options
Methods

__call(string $method, array $args) : stringOverloading: allow rendering specific decorators
Inherited from: \Zend_Form_Element::__call()\Zend_Form_Element_Xhtml::__call()\Zend_Form_Element_Multi::__call()\Zend_Form_Element_Select::__call()Call renderDecoratorName() to render a specific decorator.
| Name | Type | Description |
|---|---|---|
| $method | string | |
| $args | array |
| Type | Description |
|---|---|
| string |
| Exception | Description |
|---|---|
| \Zend_Form_Exception | for invalid decorator or invalid method call |

__construct(string | array | \Zend_Config $spec, array | \Zend_Config $options = null) : voidConstructor
Inherited from: \Zend_Form_Element::__construct()\Zend_Form_Element_Xhtml::__construct()\Zend_Form_Element_Multi::__construct()\Zend_Form_Element_Select::__construct()$spec may be: - string: name of element - array: options with which to configure element - Zend_Config: Zend_Config with options for configuring element
| Name | Type | Description |
|---|---|---|
| $spec | string | array | \Zend_Config | |
| $options | array | \Zend_Config |
| Exception | Description |
|---|---|
| \Zend_Form_Exception | if no element name after initialization |

__get(string $key) : mixedOverloading: retrieve object property
Inherited from: \Zend_Form_Element::__get()\Zend_Form_Element_Xhtml::__get()\Zend_Form_Element_Multi::__get()\Zend_Form_Element_Select::__get()Prevents access to properties beginning with '_'.
| Name | Type | Description |
|---|---|---|
| $key | string |
| Type | Description |
|---|---|
| mixed |

__set(string $key, mixed $value) : \voideOverloading: set object property
Inherited from: \Zend_Form_Element::__set()\Zend_Form_Element_Xhtml::__set()\Zend_Form_Element_Multi::__set()\Zend_Form_Element_Select::__set()| Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | mixed |
| Type | Description |
|---|---|
| \voide |

__toString() : stringString representation of form element
Inherited from: \Zend_Form_Element::__toString()\Zend_Form_Element_Xhtml::__toString()\Zend_Form_Element_Multi::__toString()\Zend_Form_Element_Select::__toString()Proxies to render().
| Type | Description |
|---|---|
| string |

_filterValue(string $value, string $key) : voidFilter a value
Inherited from: \Zend_Form_Element::_filterValue()\Zend_Form_Element_Xhtml::_filterValue()\Zend_Form_Element_Multi::_filterValue()\Zend_Form_Element_Select::_filterValue()| Name | Type | Description |
|---|---|---|
| $value | string | |
| $key | string |

_getDecorator(string $name, null | array $options) : \Zend_Form_Decorator_InterfaceInstantiate a decorator based on class name or class name fragment
Inherited from: \Zend_Form_Element::_getDecorator()\Zend_Form_Element_Xhtml::_getDecorator()\Zend_Form_Element_Multi::_getDecorator()\Zend_Form_Element_Select::_getDecorator()| Name | Type | Description |
|---|---|---|
| $name | string | |
| $options | null | array |
| Type | Description |
|---|---|
| \Zend_Form_Decorator_Interface |

_getErrorMessages() : arrayRetrieve error messages and perform translation and value substitution
Inherited from: \Zend_Form_Element::_getErrorMessages()\Zend_Form_Element_Xhtml::_getErrorMessages()\Zend_Form_Element_Multi::_getErrorMessages()\Zend_Form_Element_Select::_getErrorMessages()| Type | Description |
|---|---|
| array |

_getMultiOptions() : arrayRetrieve options array
Inherited from: \Zend_Form_Element_Multi::_getMultiOptions()\Zend_Form_Element_Select::_getMultiOptions()| Type | Description |
|---|---|
| array |

_hasErrorMessages() : boolAre there custom error messages registered?
Inherited from: \Zend_Form_Element::_hasErrorMessages()\Zend_Form_Element_Xhtml::_hasErrorMessages()\Zend_Form_Element_Multi::_hasErrorMessages()\Zend_Form_Element_Select::_hasErrorMessages()| Type | Description |
|---|---|
| bool |

_loadDecorator(array $decorator, mixed $name) : \Zend_Form_Decorator_InterfaceLazy-load a decorator
Inherited from: \Zend_Form_Element::_loadDecorator()\Zend_Form_Element_Xhtml::_loadDecorator()\Zend_Form_Element_Multi::_loadDecorator()\Zend_Form_Element_Select::_loadDecorator()| Name | Type | Description |
|---|---|---|
| $decorator | array | Decorator type and options |
| $name | mixed | Decorator name or alias |
| Type | Description |
|---|---|
| \Zend_Form_Decorator_Interface |

_loadFilter(array $filter) : \Zend_Filter_InterfaceLazy-load a filter
Inherited from: \Zend_Form_Element::_loadFilter()\Zend_Form_Element_Xhtml::_loadFilter()\Zend_Form_Element_Multi::_loadFilter()\Zend_Form_Element_Select::_loadFilter()| Name | Type | Description |
|---|---|---|
| $filter | array |
| Type | Description |
|---|---|
| \Zend_Filter_Interface |

_loadValidator(array $validator) : \Zend_Validate_InterfaceLazy-load a validator
Inherited from: \Zend_Form_Element::_loadValidator()\Zend_Form_Element_Xhtml::_loadValidator()\Zend_Form_Element_Multi::_loadValidator()\Zend_Form_Element_Select::_loadValidator()| Name | Type | Description |
|---|---|---|
| $validator | array | Validator definition |
| Type | Description |
|---|---|
| \Zend_Validate_Interface |

_translateOption(string $option, string $value) : boolTranslate an option
Inherited from: \Zend_Form_Element_Multi::_translateOption()\Zend_Form_Element_Select::_translateOption()| Name | Type | Description |
|---|---|---|
| $option | string | |
| $value | string |
| Type | Description |
|---|---|
| bool |

_translateValue(string $value) : stringTranslate a multi option value
Inherited from: \Zend_Form_Element_Multi::_translateValue()\Zend_Form_Element_Select::_translateValue()| Name | Type | Description |
|---|---|---|
| $value | string |
| Type | Description |
|---|---|
| string |

addDecorator(string | \Zend_Form_Decorator_Interface $decorator, array | \Zend_Config $options = null) : \Zend_Form_ElementAdd a decorator for rendering the element
Inherited from: \Zend_Form_Element::addDecorator()\Zend_Form_Element_Xhtml::addDecorator()\Zend_Form_Element_Multi::addDecorator()\Zend_Form_Element_Select::addDecorator()| Name | Type | Description |
|---|---|---|
| $decorator | string | \Zend_Form_Decorator_Interface | |
| $options | array | \Zend_Config | Options with which to initialize decorator |
| Type | Description |
|---|---|
| \Zend_Form_Element |

addDecorators(array $decorators) : \Zend_Form_ElementAdd many decorators at once
Inherited from: \Zend_Form_Element::addDecorators()\Zend_Form_Element_Xhtml::addDecorators()\Zend_Form_Element_Multi::addDecorators()\Zend_Form_Element_Select::addDecorators()| Name | Type | Description |
|---|---|---|
| $decorators | array |
| Type | Description |
|---|---|
| \Zend_Form_Element |

addError(string $message) : \Zend_Form_ElementAdd an error message and mark element as failed validation
Inherited from: \Zend_Form_Element::addError()\Zend_Form_Element_Xhtml::addError()\Zend_Form_Element_Multi::addError()\Zend_Form_Element_Select::addError()| Name | Type | Description |
|---|---|---|
| $message | string |
| Type | Description |
|---|---|
| \Zend_Form_Element |

addErrorMessage(string $message) : \Zend_Form_ElementAdd a custom error message to return in the event of failed validation
Inherited from: \Zend_Form_Element::addErrorMessage()\Zend_Form_Element_Xhtml::addErrorMessage()\Zend_Form_Element_Multi::addErrorMessage()\Zend_Form_Element_Select::addErrorMessage()| Name | Type | Description |
|---|---|---|
| $message | string |
| Type | Description |
|---|---|
| \Zend_Form_Element |

addErrorMessages(array $messages) : \Zend_Form_ElementAdd multiple custom error messages to return in the event of failed validation
Inherited from: \Zend_Form_Element::addErrorMessages()\Zend_Form_Element_Xhtml::addErrorMessages()\Zend_Form_Element_Multi::addErrorMessages()\Zend_Form_Element_Select::addErrorMessages()| Name | Type | Description |
|---|---|---|
| $messages | array |
| Type | Description |
|---|---|
| \Zend_Form_Element |

addErrors(array $messages) : \Zend_Form_ElementAdd multiple error messages and flag element as failed validation
Inherited from: \Zend_Form_Element::addErrors()\Zend_Form_Element_Xhtml::addErrors()\Zend_Form_Element_Multi::addErrors()\Zend_Form_Element_Select::addErrors()| Name | Type | Description |
|---|---|---|
| $messages | array |
| Type | Description |
|---|---|
| \Zend_Form_Element |

addFilter(string | \Zend_Filter_Interface $filter, $options = array()) : \Zend_Form_ElementAdd a filter to the element
Inherited from: \Zend_Form_Element::addFilter()\Zend_Form_Element_Xhtml::addFilter()\Zend_Form_Element_Multi::addFilter()\Zend_Form_Element_Select::addFilter()| Name | Type | Description |
|---|---|---|
| $filter | string | \Zend_Filter_Interface | |
| $options |
| Type | Description |
|---|---|
| \Zend_Form_Element |

addFilters(array $filters) : \Zend_Form_ElementAdd filters to element
Inherited from: \Zend_Form_Element::addFilters()\Zend_Form_Element_Xhtml::addFilters()\Zend_Form_Element_Multi::addFilters()\Zend_Form_Element_Select::addFilters()| Name | Type | Description |
|---|---|---|
| $filters | array |
| Type | Description |
|---|---|
| \Zend_Form_Element |

addMultiOption(string $option, string $value = '') : \Zend_Form_Element_MultiAdd an option
Inherited from: \Zend_Form_Element_Multi::addMultiOption()\Zend_Form_Element_Select::addMultiOption()| Name | Type | Description |
|---|---|---|
| $option | string | |
| $value | string |
| Type | Description |
|---|---|
| \Zend_Form_Element_Multi |

addMultiOptions(array $options) : \Zend_Form_Element_MultiAdd many options at once
Inherited from: \Zend_Form_Element_Multi::addMultiOptions()\Zend_Form_Element_Select::addMultiOptions()| Name | Type | Description |
|---|---|---|
| $options | array |
| Type | Description |
|---|---|
| \Zend_Form_Element_Multi |

addPrefixPath(string $prefix, string $path, string $type = null) : \Zend_Form_ElementAdd prefix path for plugin loader
Inherited from: \Zend_Form_Element::addPrefixPath()\Zend_Form_Element_Xhtml::addPrefixPath()\Zend_Form_Element_Multi::addPrefixPath()\Zend_Form_Element_Select::addPrefixPath()If no $type specified, assumes it is a base path for both filters and validators, and sets each according to the following rules: - decorators: $prefix = $prefix . '_Decorator' - filters: $prefix = $prefix . '_Filter' - validators: $prefix = $prefix . '_Validate'
Otherwise, the path prefix is set on the appropriate plugin loader.
| Name | Type | Description |
|---|---|---|
| $prefix | string | |
| $path | string | |
| $type | string |
| Type | Description |
|---|---|
| \Zend_Form_Element |
| Exception | Description |
|---|---|
| \Zend_Form_Exception | for invalid type |

addPrefixPaths(array $spec) : \Zend_Form_ElementAdd many prefix paths at once
Inherited from: \Zend_Form_Element::addPrefixPaths()\Zend_Form_Element_Xhtml::addPrefixPaths()\Zend_Form_Element_Multi::addPrefixPaths()\Zend_Form_Element_Select::addPrefixPaths()| Name | Type | Description |
|---|---|---|
| $spec | array |
| Type | Description |
|---|---|
| \Zend_Form_Element |

addValidator(string | \Zend_Validate_Interface $validator, bool $breakChainOnFailure = false, array $options = array()) : \Zend_Form_ElementAdd validator to validation chain
Inherited from: \Zend_Form_Element::addValidator()\Zend_Form_Element_Xhtml::addValidator()\Zend_Form_Element_Multi::addValidator()\Zend_Form_Element_Select::addValidator()Note: will overwrite existing validators if they are of the same class.
| Name | Type | Description |
|---|---|---|
| $validator | string | \Zend_Validate_Interface | |
| $breakChainOnFailure | bool | |
| $options | array |
| Type | Description |
|---|---|
| \Zend_Form_Element |
| Exception | Description |
|---|---|
| \Zend_Form_Exception | if invalid validator type |

addValidators(array $validators) : \Zend_Form_ElementAdd multiple validators
Inherited from: \Zend_Form_Element::addValidators()\Zend_Form_Element_Xhtml::addValidators()\Zend_Form_Element_Multi::addValidators()\Zend_Form_Element_Select::addValidators()| Name | Type | Description |
|---|---|---|
| $validators | array |
| Type | Description |
|---|---|
| \Zend_Form_Element |

autoInsertNotEmptyValidator() : boolGet flag indicating whether a NotEmpty validator should be inserted when element is required
Inherited from: \Zend_Form_Element::autoInsertNotEmptyValidator()\Zend_Form_Element_Xhtml::autoInsertNotEmptyValidator()\Zend_Form_Element_Multi::autoInsertNotEmptyValidator()\Zend_Form_Element_Select::autoInsertNotEmptyValidator()| Type | Description |
|---|---|
| bool |

clearDecorators() : \Zend_Form_ElementClear all decorators
Inherited from: \Zend_Form_Element::clearDecorators()\Zend_Form_Element_Xhtml::clearDecorators()\Zend_Form_Element_Multi::clearDecorators()\Zend_Form_Element_Select::clearDecorators()| Type | Description |
|---|---|
| \Zend_Form_Element |

clearErrorMessages() : \Zend_Form_ElementClear custom error messages stack
Inherited from: \Zend_Form_Element::clearErrorMessages()\Zend_Form_Element_Xhtml::clearErrorMessages()\Zend_Form_Element_Multi::clearErrorMessages()\Zend_Form_Element_Select::clearErrorMessages()| Type | Description |
|---|---|
| \Zend_Form_Element |

clearFilters() : \Zend_Form_ElementClear all filters
Inherited from: \Zend_Form_Element::clearFilters()\Zend_Form_Element_Xhtml::clearFilters()\Zend_Form_Element_Multi::clearFilters()\Zend_Form_Element_Select::clearFilters()| Type | Description |
|---|---|
| \Zend_Form_Element |

clearMultiOptions() : \Zend_Form_Element_MultiClear all options
Inherited from: \Zend_Form_Element_Multi::clearMultiOptions()\Zend_Form_Element_Select::clearMultiOptions()| Type | Description |
|---|---|
| \Zend_Form_Element_Multi |

clearValidators() : \Zend_Form_ElementClear all validators
Inherited from: \Zend_Form_Element::clearValidators()\Zend_Form_Element_Xhtml::clearValidators()\Zend_Form_Element_Multi::clearValidators()\Zend_Form_Element_Select::clearValidators()| Type | Description |
|---|---|
| \Zend_Form_Element |

filterName(string $value, bool $allowBrackets = false) : stringFilter a name to only allow valid variable characters
Inherited from: \Zend_Form_Element::filterName()\Zend_Form_Element_Xhtml::filterName()\Zend_Form_Element_Multi::filterName()\Zend_Form_Element_Select::filterName()| Name | Type | Description |
|---|---|---|
| $value | string | |
| $allowBrackets | bool |
| Type | Description |
|---|---|
| string |

getAllowEmpty() : boolGet 'allow empty' flag
Inherited from: \Zend_Form_Element::getAllowEmpty()\Zend_Form_Element_Xhtml::getAllowEmpty()\Zend_Form_Element_Multi::getAllowEmpty()\Zend_Form_Element_Select::getAllowEmpty()| Type | Description |
|---|---|
| bool |

getAttrib(string $name) : stringRetrieve element attribute
Inherited from: \Zend_Form_Element::getAttrib()\Zend_Form_Element_Xhtml::getAttrib()\Zend_Form_Element_Multi::getAttrib()\Zend_Form_Element_Select::getAttrib()| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| string |

getAttribs() : arrayReturn all attributes
Inherited from: \Zend_Form_Element::getAttribs()\Zend_Form_Element_Xhtml::getAttribs()\Zend_Form_Element_Multi::getAttribs()\Zend_Form_Element_Select::getAttribs()| Type | Description |
|---|---|
| array |

getBelongsTo() : stringReturn array name to which element belongs
Inherited from: \Zend_Form_Element::getBelongsTo()\Zend_Form_Element_Xhtml::getBelongsTo()\Zend_Form_Element_Multi::getBelongsTo()\Zend_Form_Element_Select::getBelongsTo()| Type | Description |
|---|---|
| string |

getDecorator(string $name) : false | \Zend_Form_Decorator_AbstractRetrieve a registered decorator
Inherited from: \Zend_Form_Element::getDecorator()\Zend_Form_Element_Xhtml::getDecorator()\Zend_Form_Element_Multi::getDecorator()\Zend_Form_Element_Select::getDecorator()| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| false | \Zend_Form_Decorator_Abstract |

getDecorators() : arrayRetrieve all decorators
Inherited from: \Zend_Form_Element::getDecorators()\Zend_Form_Element_Xhtml::getDecorators()\Zend_Form_Element_Multi::getDecorators()\Zend_Form_Element_Select::getDecorators()| Type | Description |
|---|---|
| array |

getDescription() : stringRetrieve element description
Inherited from: \Zend_Form_Element::getDescription()\Zend_Form_Element_Xhtml::getDescription()\Zend_Form_Element_Multi::getDescription()\Zend_Form_Element_Select::getDescription()| Type | Description |
|---|---|
| string |

getErrorMessageSeparator() : stringGet errorMessageSeparator
Inherited from: \Zend_Form_Element::getErrorMessageSeparator()\Zend_Form_Element_Xhtml::getErrorMessageSeparator()\Zend_Form_Element_Multi::getErrorMessageSeparator()\Zend_Form_Element_Select::getErrorMessageSeparator()| Type | Description |
|---|---|
| string |

getErrorMessages() : arrayRetrieve custom error messages
Inherited from: \Zend_Form_Element::getErrorMessages()\Zend_Form_Element_Xhtml::getErrorMessages()\Zend_Form_Element_Multi::getErrorMessages()\Zend_Form_Element_Select::getErrorMessages()| Type | Description |
|---|---|
| array |

getErrors() : arrayRetrieve validator chain errors
Inherited from: \Zend_Form_Element::getErrors()\Zend_Form_Element_Xhtml::getErrors()\Zend_Form_Element_Multi::getErrors()\Zend_Form_Element_Select::getErrors()| Type | Description |
|---|---|
| array |

getFilter(string $name) : \Zend_Filter_InterfaceRetrieve a single filter by name
Inherited from: \Zend_Form_Element::getFilter()\Zend_Form_Element_Xhtml::getFilter()\Zend_Form_Element_Multi::getFilter()\Zend_Form_Element_Select::getFilter()| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| \Zend_Filter_Interface |

getFilters() : arrayGet all filters
Inherited from: \Zend_Form_Element::getFilters()\Zend_Form_Element_Xhtml::getFilters()\Zend_Form_Element_Multi::getFilters()\Zend_Form_Element_Select::getFilters()| Type | Description |
|---|---|
| array |

getFullyQualifiedName() : stringGet fully qualified name
Inherited from: \Zend_Form_Element::getFullyQualifiedName()\Zend_Form_Element_Xhtml::getFullyQualifiedName()\Zend_Form_Element_Multi::getFullyQualifiedName()\Zend_Form_Element_Select::getFullyQualifiedName()Places name as subitem of array and/or appends brackets.
| Type | Description |
|---|---|
| string |

getId() : stringGet element id
Inherited from: \Zend_Form_Element::getId()\Zend_Form_Element_Xhtml::getId()\Zend_Form_Element_Multi::getId()\Zend_Form_Element_Select::getId()| Type | Description |
|---|---|
| string |

getIgnore() : boolGet ignore flag (used when retrieving values at form level)
Inherited from: \Zend_Form_Element::getIgnore()\Zend_Form_Element_Xhtml::getIgnore()\Zend_Form_Element_Multi::getIgnore()\Zend_Form_Element_Select::getIgnore()| Type | Description |
|---|---|
| bool |

getLabel() : stringRetrieve element label
Inherited from: \Zend_Form_Element::getLabel()\Zend_Form_Element_Xhtml::getLabel()\Zend_Form_Element_Multi::getLabel()\Zend_Form_Element_Select::getLabel()| Type | Description |
|---|---|
| string |

getMessages() : arrayRetrieve error messages
Inherited from: \Zend_Form_Element::getMessages()\Zend_Form_Element_Xhtml::getMessages()\Zend_Form_Element_Multi::getMessages()\Zend_Form_Element_Select::getMessages()The array keys are validation failure message identifiers, and the array values are the corresponding human-readable message strings.
If isValid() was never called or if the most recent isValid() call returned true, then this method returns an empty array.
| Type | Description |
|---|---|
| array |

getMultiOption(string $option) : mixedRetrieve single multi option
Inherited from: \Zend_Form_Element_Multi::getMultiOption()\Zend_Form_Element_Select::getMultiOption()| Name | Type | Description |
|---|---|---|
| $option | string |
| Type | Description |
|---|---|
| mixed |

getMultiOptions() : arrayRetrieve options
Inherited from: \Zend_Form_Element_Multi::getMultiOptions()\Zend_Form_Element_Select::getMultiOptions()| Type | Description |
|---|---|
| array |

getName() : stringReturn element name
Inherited from: \Zend_Form_Element::getName()\Zend_Form_Element_Xhtml::getName()\Zend_Form_Element_Multi::getName()\Zend_Form_Element_Select::getName()| Type | Description |
|---|---|
| string |

getOrder() : intRetrieve element order
Inherited from: \Zend_Form_Element::getOrder()\Zend_Form_Element_Xhtml::getOrder()\Zend_Form_Element_Multi::getOrder()\Zend_Form_Element_Select::getOrder()| Type | Description |
|---|---|
| int |

getPluginLoader(string $type) : \Zend_Loader_PluginLoaderRetrieve plugin loader for validator or filter chain
Inherited from: \Zend_Form_Element::getPluginLoader()\Zend_Form_Element_Xhtml::getPluginLoader()\Zend_Form_Element_Multi::getPluginLoader()\Zend_Form_Element_Select::getPluginLoader()Instantiates with default rules if none available for that type. Use 'decorator', 'filter', or 'validate' for $type.
| Name | Type | Description |
|---|---|---|
| $type | string |
| Type | Description |
|---|---|
| \Zend_Loader_PluginLoader |
| Exception | Description |
|---|---|
| \Zend_Loader_Exception | on invalid type. |

getSeparator() : mixedRetrieve separator
Inherited from: \Zend_Form_Element_Multi::getSeparator()\Zend_Form_Element_Select::getSeparator()| Type | Description |
|---|---|
| mixed |

getTranslator() : \Zend_Translate_Adapter | nullRetrieve localization translator object
Inherited from: \Zend_Form_Element::getTranslator()\Zend_Form_Element_Xhtml::getTranslator()\Zend_Form_Element_Multi::getTranslator()\Zend_Form_Element_Select::getTranslator()| Type | Description |
|---|---|
| \Zend_Translate_Adapter | null |

getType() : stringReturn element type
Inherited from: \Zend_Form_Element::getType()\Zend_Form_Element_Xhtml::getType()\Zend_Form_Element_Multi::getType()\Zend_Form_Element_Select::getType()| Type | Description |
|---|---|
| string |

getUnfilteredValue() : mixedRetrieve unfiltered element value
Inherited from: \Zend_Form_Element::getUnfilteredValue()\Zend_Form_Element_Xhtml::getUnfilteredValue()\Zend_Form_Element_Multi::getUnfilteredValue()\Zend_Form_Element_Select::getUnfilteredValue()| Type | Description |
|---|---|
| mixed |

getValidator(string $name) : \Zend_Validate_Interface | falseRetrieve a single validator by name
Inherited from: \Zend_Form_Element::getValidator()\Zend_Form_Element_Xhtml::getValidator()\Zend_Form_Element_Multi::getValidator()\Zend_Form_Element_Select::getValidator()| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| \Zend_Validate_Interface | false | False if not found, validator otherwise |

getValidators() : arrayRetrieve all validators
Inherited from: \Zend_Form_Element::getValidators()\Zend_Form_Element_Xhtml::getValidators()\Zend_Form_Element_Multi::getValidators()\Zend_Form_Element_Select::getValidators()| Type | Description |
|---|---|
| array |

getValue() : mixedRetrieve filtered element value
Inherited from: \Zend_Form_Element::getValue()\Zend_Form_Element_Xhtml::getValue()\Zend_Form_Element_Multi::getValue()\Zend_Form_Element_Select::getValue()| Type | Description |
|---|---|
| mixed |

getView() : null | \Zend_View_InterfaceRetrieve view object
Inherited from: \Zend_Form_Element::getView()\Zend_Form_Element_Xhtml::getView()\Zend_Form_Element_Multi::getView()\Zend_Form_Element_Select::getView()Retrieves from ViewRenderer if none previously set.
| Type | Description |
|---|---|
| null | \Zend_View_Interface |

hasErrors() : boolAre there errors registered?
Inherited from: \Zend_Form_Element::hasErrors()\Zend_Form_Element_Xhtml::hasErrors()\Zend_Form_Element_Multi::hasErrors()\Zend_Form_Element_Select::hasErrors()| Type | Description |
|---|---|
| bool |

hasTranslator() : boolDoes this element have its own specific translator?
Inherited from: \Zend_Form_Element::hasTranslator()\Zend_Form_Element_Xhtml::hasTranslator()\Zend_Form_Element_Multi::hasTranslator()\Zend_Form_Element_Select::hasTranslator()| Type | Description |
|---|---|
| bool |

init() : voidInitialize object; used by extending classes
Inherited from: \Zend_Form_Element::init()\Zend_Form_Element_Xhtml::init()\Zend_Form_Element_Multi::init()\Zend_Form_Element_Select::init()
isArray() : boolIs the element representing an array?
Inherited from: \Zend_Form_Element::isArray()\Zend_Form_Element_Xhtml::isArray()\Zend_Form_Element_Multi::isArray()\Zend_Form_Element_Select::isArray()| Type | Description |
|---|---|
| bool |

isRequired() : boolIs the element required?
Inherited from: \Zend_Form_Element::isRequired()\Zend_Form_Element_Xhtml::isRequired()\Zend_Form_Element_Multi::isRequired()\Zend_Form_Element_Select::isRequired()| Type | Description |
|---|---|
| bool |

isValid(string $value, mixed $context = null) : boolIs the value provided valid?
Inherited from: \Zend_Form_Element_Multi::isValid()\Zend_Form_Element_Select::isValid()Autoregisters InArray validator if necessary.
| Name | Type | Description |
|---|---|---|
| $value | string | |
| $context | mixed |
| Type | Description |
|---|---|
| bool |
| Exception | Description |
|---|---|
| \Zend_Validate_Exception | If validation of $value is impossible |

loadDefaultDecorators() : \Zend_Form_ElementLoad default decorators
Inherited from: \Zend_Form_Element::loadDefaultDecorators()\Zend_Form_Element_Xhtml::loadDefaultDecorators()\Zend_Form_Element_Multi::loadDefaultDecorators()\Zend_Form_Element_Select::loadDefaultDecorators()| Type | Description |
|---|---|
| \Zend_Form_Element |

loadDefaultDecoratorsIsDisabled() : boolShould we load the default decorators?
Inherited from: \Zend_Form_Element::loadDefaultDecoratorsIsDisabled()\Zend_Form_Element_Xhtml::loadDefaultDecoratorsIsDisabled()\Zend_Form_Element_Multi::loadDefaultDecoratorsIsDisabled()\Zend_Form_Element_Select::loadDefaultDecoratorsIsDisabled()| Type | Description |
|---|---|
| bool |

markAsError() : \Zend_Form_ElementMark the element as being in a failed validation state
Inherited from: \Zend_Form_Element::markAsError()\Zend_Form_Element_Xhtml::markAsError()\Zend_Form_Element_Multi::markAsError()\Zend_Form_Element_Select::markAsError()| Type | Description |
|---|---|
| \Zend_Form_Element |

registerInArrayValidator() : boolGet status of auto-register inArray validator flag
Inherited from: \Zend_Form_Element_Multi::registerInArrayValidator()\Zend_Form_Element_Select::registerInArrayValidator()| Type | Description |
|---|---|
| bool |

removeDecorator(string $name) : \Zend_Form_ElementRemove a single decorator
Inherited from: \Zend_Form_Element::removeDecorator()\Zend_Form_Element_Xhtml::removeDecorator()\Zend_Form_Element_Multi::removeDecorator()\Zend_Form_Element_Select::removeDecorator()| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| \Zend_Form_Element |

removeFilter(string $name) : \Zend_Form_ElementRemove a filter by name
Inherited from: \Zend_Form_Element::removeFilter()\Zend_Form_Element_Xhtml::removeFilter()\Zend_Form_Element_Multi::removeFilter()\Zend_Form_Element_Select::removeFilter()| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| \Zend_Form_Element |

removeMultiOption(string $option) : boolRemove a single multi option
Inherited from: \Zend_Form_Element_Multi::removeMultiOption()\Zend_Form_Element_Select::removeMultiOption()| Name | Type | Description |
|---|---|---|
| $option | string |
| Type | Description |
|---|---|
| bool |

removeValidator(string $name) : boolRemove a single validator by name
Inherited from: \Zend_Form_Element::removeValidator()\Zend_Form_Element_Xhtml::removeValidator()\Zend_Form_Element_Multi::removeValidator()\Zend_Form_Element_Select::removeValidator()| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| bool |

render(\Zend_View_Interface $view = null) : stringRender form element
Inherited from: \Zend_Form_Element::render()\Zend_Form_Element_Xhtml::render()\Zend_Form_Element_Multi::render()\Zend_Form_Element_Select::render()| Name | Type | Description |
|---|---|---|
| $view | \Zend_View_Interface |
| Type | Description |
|---|---|
| string |

resolveElementId(\Zend_Form_Decorator_Interface $decorator) : stringUsed to resolve and return an element ID
Inherited from: \Zend_Form_Element::resolveElementId()\Zend_Form_Element_Xhtml::resolveElementId()\Zend_Form_Element_Multi::resolveElementId()\Zend_Form_Element_Select::resolveElementId()Passed to the HtmlTag decorator as a callback in order to provide an ID.
| Name | Type | Description |
|---|---|---|
| $decorator | \Zend_Form_Decorator_Interface |
| Type | Description |
|---|---|
| string |

setAllowEmpty(bool $flag) : \Zend_Form_ElementSet 'allow empty' flag
Inherited from: \Zend_Form_Element::setAllowEmpty()\Zend_Form_Element_Xhtml::setAllowEmpty()\Zend_Form_Element_Multi::setAllowEmpty()\Zend_Form_Element_Select::setAllowEmpty()When the allow empty flag is enabled and the required flag is false, the element will validate with empty values.
| Name | Type | Description |
|---|---|---|
| $flag | bool |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setAttrib(string $name, mixed $value) : \Zend_Form_ElementSet element attribute
Inherited from: \Zend_Form_Element::setAttrib()\Zend_Form_Element_Xhtml::setAttrib()\Zend_Form_Element_Multi::setAttrib()\Zend_Form_Element_Select::setAttrib()| Name | Type | Description |
|---|---|---|
| $name | string | |
| $value | mixed |
| Type | Description |
|---|---|
| \Zend_Form_Element |
| Exception | Description |
|---|---|
| \Zend_Form_Exception | for invalid $name values |

setAttribs(array $attribs) : \Zend_Form_ElementSet multiple attributes at once
Inherited from: \Zend_Form_Element::setAttribs()\Zend_Form_Element_Xhtml::setAttribs()\Zend_Form_Element_Multi::setAttribs()\Zend_Form_Element_Select::setAttribs()| Name | Type | Description |
|---|---|---|
| $attribs | array |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setAutoInsertNotEmptyValidator(bool $flag) : \Zend_Form_ElementSet flag indicating whether a NotEmpty validator should be inserted when element is required
Inherited from: \Zend_Form_Element::setAutoInsertNotEmptyValidator()\Zend_Form_Element_Xhtml::setAutoInsertNotEmptyValidator()\Zend_Form_Element_Multi::setAutoInsertNotEmptyValidator()\Zend_Form_Element_Select::setAutoInsertNotEmptyValidator()| Name | Type | Description |
|---|---|---|
| $flag | bool |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setBelongsTo(string $array) : \Zend_Form_ElementSet array to which element belongs
Inherited from: \Zend_Form_Element::setBelongsTo()\Zend_Form_Element_Xhtml::setBelongsTo()\Zend_Form_Element_Multi::setBelongsTo()\Zend_Form_Element_Select::setBelongsTo()| Name | Type | Description |
|---|---|---|
| $array | string |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setConfig(\Zend_Config $config) : \Zend_Form_ElementSet object state from Zend_Config object
Inherited from: \Zend_Form_Element::setConfig()\Zend_Form_Element_Xhtml::setConfig()\Zend_Form_Element_Multi::setConfig()\Zend_Form_Element_Select::setConfig()| Name | Type | Description |
|---|---|---|
| $config | \Zend_Config |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setDecorators(array $decorators) : \Zend_Form_ElementOverwrite all decorators
Inherited from: \Zend_Form_Element::setDecorators()\Zend_Form_Element_Xhtml::setDecorators()\Zend_Form_Element_Multi::setDecorators()\Zend_Form_Element_Select::setDecorators()| Name | Type | Description |
|---|---|---|
| $decorators | array |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setDescription(string $description) : \Zend_Form_ElementSet element description
Inherited from: \Zend_Form_Element::setDescription()\Zend_Form_Element_Xhtml::setDescription()\Zend_Form_Element_Multi::setDescription()\Zend_Form_Element_Select::setDescription()| Name | Type | Description |
|---|---|---|
| $description | string |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setDisableLoadDefaultDecorators(bool $flag) : \Zend_Form_ElementSet flag to disable loading default decorators
Inherited from: \Zend_Form_Element::setDisableLoadDefaultDecorators()\Zend_Form_Element_Xhtml::setDisableLoadDefaultDecorators()\Zend_Form_Element_Multi::setDisableLoadDefaultDecorators()\Zend_Form_Element_Select::setDisableLoadDefaultDecorators()| Name | Type | Description |
|---|---|---|
| $flag | bool |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setDisableTranslator(bool $flag) : \Zend_Form_ElementIndicate whether or not translation should be disabled
Inherited from: \Zend_Form_Element::setDisableTranslator()\Zend_Form_Element_Xhtml::setDisableTranslator()\Zend_Form_Element_Multi::setDisableTranslator()\Zend_Form_Element_Select::setDisableTranslator()| Name | Type | Description |
|---|---|---|
| $flag | bool |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setErrorMessageSeparator(string $separator) : \Zend_Form_ElementSet errorMessageSeparator
Inherited from: \Zend_Form_Element::setErrorMessageSeparator()\Zend_Form_Element_Xhtml::setErrorMessageSeparator()\Zend_Form_Element_Multi::setErrorMessageSeparator()\Zend_Form_Element_Select::setErrorMessageSeparator()| Name | Type | Description |
|---|---|---|
| $separator | string |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setErrorMessages(array $messages) : \Zend_Form_ElementSame as addErrorMessages(), but clears custom error message stack first
Inherited from: \Zend_Form_Element::setErrorMessages()\Zend_Form_Element_Xhtml::setErrorMessages()\Zend_Form_Element_Multi::setErrorMessages()\Zend_Form_Element_Select::setErrorMessages()| Name | Type | Description |
|---|---|---|
| $messages | array |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setErrors(array $messages) : \Zend_Form_ElementOverwrite any previously set error messages and flag as failed validation
Inherited from: \Zend_Form_Element::setErrors()\Zend_Form_Element_Xhtml::setErrors()\Zend_Form_Element_Multi::setErrors()\Zend_Form_Element_Select::setErrors()| Name | Type | Description |
|---|---|---|
| $messages | array |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setFilters(array $filters) : \Zend_Form_ElementAdd filters to element, overwriting any already existing
Inherited from: \Zend_Form_Element::setFilters()\Zend_Form_Element_Xhtml::setFilters()\Zend_Form_Element_Multi::setFilters()\Zend_Form_Element_Select::setFilters()| Name | Type | Description |
|---|---|---|
| $filters | array |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setIgnore(bool $flag) : \Zend_Form_ElementSet ignore flag (used when retrieving values at form level)
Inherited from: \Zend_Form_Element::setIgnore()\Zend_Form_Element_Xhtml::setIgnore()\Zend_Form_Element_Multi::setIgnore()\Zend_Form_Element_Select::setIgnore()| Name | Type | Description |
|---|---|---|
| $flag | bool |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setIsArray(bool $flag) : \Zend_Form_ElementSet flag indicating if element represents an array
Inherited from: \Zend_Form_Element::setIsArray()\Zend_Form_Element_Xhtml::setIsArray()\Zend_Form_Element_Multi::setIsArray()\Zend_Form_Element_Select::setIsArray()| Name | Type | Description |
|---|---|---|
| $flag | bool |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setLabel(string $label) : \Zend_Form_ElementSet element label
Inherited from: \Zend_Form_Element::setLabel()\Zend_Form_Element_Xhtml::setLabel()\Zend_Form_Element_Multi::setLabel()\Zend_Form_Element_Select::setLabel()| Name | Type | Description |
|---|---|---|
| $label | string |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setMultiOptions(array $options) : \Zend_Form_Element_MultiSet all options at once (overwrites)
Inherited from: \Zend_Form_Element_Multi::setMultiOptions()\Zend_Form_Element_Select::setMultiOptions()| Name | Type | Description |
|---|---|---|
| $options | array |
| Type | Description |
|---|---|
| \Zend_Form_Element_Multi |

setName(string $name) : \Zend_Form_ElementSet element name
Inherited from: \Zend_Form_Element::setName()\Zend_Form_Element_Xhtml::setName()\Zend_Form_Element_Multi::setName()\Zend_Form_Element_Select::setName()| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setOptions(array $options) : \Zend_Form_ElementSet object state from options array
Inherited from: \Zend_Form_Element::setOptions()\Zend_Form_Element_Xhtml::setOptions()\Zend_Form_Element_Multi::setOptions()\Zend_Form_Element_Select::setOptions()| Name | Type | Description |
|---|---|---|
| $options | array |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setOrder(int $order) : \Zend_Form_ElementSet element order
Inherited from: \Zend_Form_Element::setOrder()\Zend_Form_Element_Xhtml::setOrder()\Zend_Form_Element_Multi::setOrder()\Zend_Form_Element_Select::setOrder()| Name | Type | Description |
|---|---|---|
| $order | int |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setPluginLoader(\Zend_Loader_PluginLoader_Interface $loader, string $type) : \Zend_Form_ElementSet plugin loader to use for validator or filter chain
Inherited from: \Zend_Form_Element::setPluginLoader()\Zend_Form_Element_Xhtml::setPluginLoader()\Zend_Form_Element_Multi::setPluginLoader()\Zend_Form_Element_Select::setPluginLoader()| Name | Type | Description |
|---|---|---|
| $loader | \Zend_Loader_PluginLoader_Interface | |
| $type | string | 'decorator', 'filter', or 'validate' |
| Type | Description |
|---|---|
| \Zend_Form_Element |
| Exception | Description |
|---|---|
| \Zend_Form_Exception | on invalid type |

setRegisterInArrayValidator(bool $flag) : \Zend_Form_Element_MultiSet flag indicating whether or not to auto-register inArray validator
Inherited from: \Zend_Form_Element_Multi::setRegisterInArrayValidator()\Zend_Form_Element_Select::setRegisterInArrayValidator()| Name | Type | Description |
|---|---|---|
| $flag | bool |
| Type | Description |
|---|---|
| \Zend_Form_Element_Multi |

setRequired(bool $flag = true) : \Zend_Form_ElementSet required flag
Inherited from: \Zend_Form_Element::setRequired()\Zend_Form_Element_Xhtml::setRequired()\Zend_Form_Element_Multi::setRequired()\Zend_Form_Element_Select::setRequired()| Name | Type | Description |
|---|---|---|
| $flag | bool | Default value is true |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setSeparator(mixed $separator) : \Zend_Form_Element_MultiselectSet separator
Inherited from: \Zend_Form_Element_Multi::setSeparator()\Zend_Form_Element_Select::setSeparator()| Name | Type | Description |
|---|---|---|
| $separator | mixed |
| Type | Description |
|---|---|
| \Zend_Form_Element_Multiselect |
- Fluent
- This method is part of a fluent interface and will return the same instance

setTranslator(\Zend_Translate | null $translator = null) : \Zend_Form_ElementSet translator object for localization
Inherited from: \Zend_Form_Element::setTranslator()\Zend_Form_Element_Xhtml::setTranslator()\Zend_Form_Element_Multi::setTranslator()\Zend_Form_Element_Select::setTranslator()| Name | Type | Description |
|---|---|---|
| $translator | \Zend_Translate | null |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setValidators(array $validators) : \Zend_Form_ElementSet multiple validators, overwriting previous validators
Inherited from: \Zend_Form_Element::setValidators()\Zend_Form_Element_Xhtml::setValidators()\Zend_Form_Element_Multi::setValidators()\Zend_Form_Element_Select::setValidators()| Name | Type | Description |
|---|---|---|
| $validators | array |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setValue(mixed $value) : \Zend_Form_ElementSet element value
Inherited from: \Zend_Form_Element::setValue()\Zend_Form_Element_Xhtml::setValue()\Zend_Form_Element_Multi::setValue()\Zend_Form_Element_Select::setValue()| Name | Type | Description |
|---|---|---|
| $value | mixed |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setView(\Zend_View_Interface $view = null) : \Zend_Form_ElementSet view object
Inherited from: \Zend_Form_Element::setView()\Zend_Form_Element_Xhtml::setView()\Zend_Form_Element_Multi::setView()\Zend_Form_Element_Select::setView()| Name | Type | Description |
|---|---|---|
| $view | \Zend_View_Interface |
| Type | Description |
|---|---|
| \Zend_Form_Element |

translatorIsDisabled() : boolIs translation disabled?
Inherited from: \Zend_Form_Element::translatorIsDisabled()\Zend_Form_Element_Xhtml::translatorIsDisabled()\Zend_Form_Element_Multi::translatorIsDisabled()\Zend_Form_Element_Select::translatorIsDisabled()| Type | Description |
|---|---|
| bool |