Zend_Form_Element| Class | Description |
|---|---|
Zend_Dojo_Form_Element_Dijit
|
Base element for dijit elements |
Zend_Form_Element_Xhtml
|
Base element for XHTML elements |
Zend_Form_Element
addDecorator
(string|Zend_Form_Decorator_Interface $decorator, [array|Zend_Config $options = null])
Zend_Form_Element
addValidator
(string|Zend_Validate_Interface $validator, [bool $breakChainOnFailure = false], [array $options = array()])
string
$helper
= 'formText' (line 56)
Default view helper to use
bool
$_allowEmpty
= true (line 62)
'Allow empty' flag
bool
$_autoInsertNotEmptyValidator
= true (line 68)
Flag indicating whether or not to insert NotEmpty validator when element is required
string
$_belongsTo
(line 74)
Array to which element belongs
array
$_decorators
= array() (line 80)
Element decorators
string
$_description
(line 86)
Element description
bool
$_disableLoadDefaultDecorators
= false (line 92)
Should we disable loading the default decorators?
array
$_errorMessages
= array() (line 98)
Custom error messages
string
$_errorMessageSeparator
= '; ' (line 111)
Separator to use when concatenating aggregate error messages (for
elements having array values)
array
$_errors
= array() (line 104)
Validation errors
array
$_filters
= array() (line 117)
Element filters
bool
$_ignore
= false (line 123)
Ignore flag (used when retrieving values at form level)
bool
$_isArray
= false (line 129)
Does the element represent an array?
bool
$_isError
= false (line 135)
Is the error marked as in an invalid state?
bool
$_isErrorForced
= false (line 141)
Has the element been manually marked as invalid?
bool
$_isPartialRendering
= false (line 227)
Is a specific decorator being rendered via the magic renderDecorator()?
This is to allow execution of logic inside the render() methods of child elements during the magic call while skipping the parent render() method.
string
$_label
(line 147)
Element label
array
$_loaders
= array() (line 153)
Plugin loaders for filter and validator chains
array
$_messages
= array() (line 159)
Formatted validation error messages
string
$_name
(line 165)
Element name
int
$_order
(line 171)
Order of element
bool
$_required
= false (line 177)
Required flag
Zend_Translate
$_translator
(line 182)
bool
$_translatorDisabled
= false (line 188)
Is translation disabled?
string
$_type
(line 194)
Element type
array
$_validatorRules
= array() (line 206)
Array of un-initialized validators
array
$_validators
= array() (line 200)
Array of initialized validators
mixed
$_value
(line 212)
Element value
Zend_View_Interface
$_view
(line 217)
addDecorator (line 1822)
Add a decorator for rendering the element
addDecorators (line 1864)
Add many decorators at once
addError (line 1528)
Add an error message and mark element as failed validation
addErrorMessage (line 1428)
Add a custom error message to return in the event of failed validation
addErrorMessages (line 1440)
Add multiple custom error messages to return in the event of failed validation
addErrors (line 1541)
Add multiple error messages and flag element as failed validation
addFilter (line 1600)
Add a filter to the element
addFilters (line 1627)
Add filters to element
addPrefixPath (line 1047)
Add prefix path for plugin loader
If no $type specified, assumes it is a base path for both filters and validators, and sets each according to the following rules:
addPrefixPaths (line 1080)
Add many prefix paths at once
addValidator (line 1129)
Add validator to validation chain
Note: will overwrite existing validators if they are of the same class.
addValidators (line 1161)
Add multiple validators
autoInsertNotEmptyValidator (line 692)
Get flag indicating whether a NotEmpty validator should be inserted when element is required
clearErrorMessages (line 1475)
Clear custom error messages stack
clearFilters (line 1759)
Clear all filters
clearValidators (line 1298)
Clear all validators
Constructor __construct (line 242)
Constructor
$spec may be:
filterName (line 462)
Filter a name to only allow valid variable characters
getAllowEmpty (line 739)
Get 'allow empty' flag
getAttrib (line 874)
Retrieve element attribute
getAttribs (line 889)
Return all attributes
getBelongsTo (line 809)
Return array name to which element belongs
getDecorator (line 1923)
Retrieve a registered decorator
getDecorators (line 1954)
Retrieve all decorators
getDescription (line 714)
Retrieve element description
getErrorMessages (line 1465)
Retrieve custom error messages
getErrorMessageSeparator (line 1486)
Get errorMessageSeparator
getErrors (line 1576)
Retrieve validator chain errors
getFilter (line 1683)
Retrieve a single filter by name
getFilters (line 1714)
Get all filters
getFullyQualifiedName (line 506)
Get fully qualified name
Places name as subitem of array and/or appends brackets.
getId (line 526)
Get element id
getIgnore (line 761)
Get ignore flag (used when retrieving values at form level)
getLabel (line 621)
Retrieve element label
getMessages (line 1586)
Retrieve error messages
getName (line 494)
Return element name
getOrder (line 648)
Retrieve element order
getPluginLoader (line 1004)
Retrieve plugin loader for validator or filter chain
Instantiates with default rules if none available for that type. Use 'decorator', 'filter', or 'validate' for $type.
getTranslator (line 409)
Retrieve localization translator object
getType (line 819)
Return element type
getUnfilteredValue (line 599)
Retrieve unfiltered element value
getValidator (line 1223)
Retrieve a single validator by name
getValidators (line 1253)
Retrieve all validators
getValue (line 581)
Retrieve filtered element value
getView (line 1786)
Retrieve view object
Retrieves from ViewRenderer if none previously set.
hasErrors (line 1566)
Are there errors registered?
hasTranslator (line 426)
Does this element have its own specific translator?
init (line 279)
Initialize object; used by extending classes
isArray (line 783)
Is the element representing an array?
isRequired (line 670)
Is the element required?
isValid (line 1318)
Validate element value
If a translation adapter is registered, any error messages will be translated according to the current locale, using the given error code; if no matching translation is found, the original message will be utilized.
Note: The *filtered* value is validated.
loadDefaultDecorators (line 310)
Load default decorators
loadDefaultDecoratorsIsDisabled (line 300)
Should we load the default decorators?
markAsError (line 1508)
Mark the element as being in a failed validation state
removeDecorator (line 1970)
Remove a single decorator
removeFilter (line 1734)
Remove a filter by name
removeValidator (line 1273)
Remove a single validator by name
render (line 2007)
Render form element
setAllowEmpty (line 728)
Set 'allow empty' flag
When the allow empty flag is enabled and the required flag is false, the element will validate with empty values.
setAttrib (line 836)
Set element attribute
setAttribs (line 859)
Set multiple attributes at once
setAutoInsertNotEmptyValidator (line 681)
Set flag indicating whether a NotEmpty validator should be inserted when element is required
setBelongsTo (line 794)
Set array to which element belongs
setDecorators (line 1911)
Overwrite all decorators
setDescription (line 703)
Set element description
setDisableLoadDefaultDecorators (line 289)
Set flag to disable loading default decorators
setDisableTranslator (line 437)
Indicate whether or not translation should be disabled
setErrorMessages (line 1454)
Same as addErrorMessages(), but clears custom error message stack first
setErrorMessageSeparator (line 1497)
Set errorMessageSeparator
setErrors (line 1555)
Overwrite any previously set error messages and flag as failed validation
setFilters (line 1671)
Add filters to element, overwriting any already existing
setIgnore (line 750)
Set ignore flag (used when retrieving values at form level)
setIsArray (line 772)
Set flag indicating if element represents an array
setOptions (line 334)
Set object state from options array
setPluginLoader (line 979)
Set plugin loader to use for validator or filter chain
setRequired (line 659)
Set required flag
setTranslator (line 389)
Set translator object for localization
setValidators (line 1211)
Set multiple validators, overwriting previous validators
setValue (line 556)
Set element value
setView (line 1773)
Set view object
translatorIsDisabled (line 448)
Is translation disabled?
_filterValue (line 569)
Filter a value
_getDecorator (line 1803)
Instantiate a decorator based on class name or class name fragment
_getErrorMessages (line 2214)
Retrieve error messages and perform translation and value substitution
_hasErrorMessages (line 2243)
Are there custom error messages registered?
_loadDecorator (line 2178)
Lazy-load a decorator
_loadFilter (line 2049)
Lazy-load a filter
_loadValidator (line 2098)
Lazy-load a validator
__call (line 945)
Overloading: allow rendering specific decorators
Call renderDecoratorName() to render a specific decorator.
__get (line 909)
Overloading: retrieve object property
Prevents access to properties beginning with '_'.
__set (line 930)
Overloading: set object property
__toString (line 2032)
String representation of form element
Proxies to render().
Documentation generated on Mon, 21 Jun 2010 15:18:42 -0400 by phpDocumentor 1.4.3