Implements interfaces:
Zend_Form
Located in /Form.php (line 33)
Class | Description |
---|---|
![]() |
Dijit-enabled Form |
![]() |
Zend_Form_SubForm |
Global default translation adapter
Form metadata and attributes
Decorators for rendering
Default display group class
Form description
Should we disable loading the default decorators?
Display group prefix paths
Groups of elements grouped for display purposes
Global decorators to apply to all elements
Prefix paths to use when creating elements
Form elements
Array to which elements belong (if any)
Custom form-level error messages
Are there errors in the form?
Has the form been manually flagged as an error?
Form order
Whether or not form elements are members of an array
Form legend
Plugin loaders
Allowed form methods
Order in which to display and iterate elements
Whether internal order has been updated or not
Sub form prefix paths
Sub forms
is the translator disabled?
Get global default translator object
Is there a default translation object set?
Set global default translator object
Constructor
Registers form view helper as decorator
Add multiple form attributes at once
Add a decorator for rendering the element
Add many decorators at once
Add a display group
Groups named elements for display purposes.
If a referenced element does not yet exist in the form, it is omitted.
Add prefix path for all display groups
Add multiple display group prefix paths at once
Add multiple display groups at once
Add a new element
$element may be either a string element type, or an object of type Zend_Form_Element. If a string element type is provided, $name must be provided, and $options may be optionally provided for configuring the element.
If a Zend_Form_Element is provided, $name may be optionally provided, and any provided $options will be ignored.
Add prefix path for all elements
Add prefix paths for all elements
Add multiple elements at once
Add an error message and mark element as failed validation
Add a custom error message to return in the event of failed validation
Add multiple custom error messages to return in the event of failed validation
Add multiple error messages and flag element as failed validation
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:
If $type is 'decorator', sets the path in the decorator plugin loader for all elements. Additionally, if no $type is provided, the prefix and path is added to both decorator and element plugin loader with following settings: $prefix . '_Decorator', $path . '/Decorator/' $prefix . '_Element', $path . '/Element/'
Add many prefix paths at once
Add multiple form subForms/subforms at once
Count of elements/subforms that are iterable
Create an element
Acts as a factory for creating elements. Elements created with this method will not be attached to the form, but will contain element settings as specified in the form object (including plugin loader prefix paths, default decorators, etc.).
Current element/subform/display group
Filter a name to only allow valid variable characters
Get form action
Sets default to '' if not set.
Retrieve a single form attribute
Retrieve all form attributes/metadata
Retrieve translated custom error messages Proxies to _getErrorMessages().
Retrieve a registered decorator
Retrieve all decorators
Retrieve default display group class
Retrieve form description
Return a display group
Return all display groups
Retrieve a single element
Retrieve all elements
Returns a one dimensional numerical indexed array with the Elements, SubForms and Elements from DisplayGroups as Values.
Subitems are inserted based on their order Setting if set, otherwise they are appended, the resulting numerical index may differ from the order value.
Get name of array elements belong to
Get encoding type
Retrieve custom error messages
Get error codes for all elements failing validation
Get fully qualified name
Places name as subitem of array and/or appends brackets.
Get element id
Get form legend
Retrieve error messages from elements failing validations
Retrieve form method
Get name attribute
Get form order
Retrieve plugin loader for given type
$type may be one of:
Retrieve a form subForm/subform
Retrieve all form subForms/subforms
Get unfiltered element value
Retrieve all unfiltered element values
Returns only the valid values from the given form input.
For models that can be saved in a partially valid state, for example when following the builder, prototype or state patterns it is particularly interessting to retrieve all the current valid values to persist them.
Retrieve value for single element
Retrieve all form element values
Retrieve view object
If none registered, attempts to pull from ViewRenderer.
Does this form have its own specific translator?
Initialize form (used by extending classes)
Get flag indicating if elements belong to an array
Are there errors in the form?
Validate the form
Validate a partial form
Does not check for required flags.
Current element/subform/display group name
Load the default decorators
Should we load the default decorators?
Mark the element as being in a failed validation state
Move pointer to next element/subform/display group
Process submitted AJAX data
Checks if provided $data is valid, via isValidPartial(). If so, it returns JSON-encoded boolean true. If not, it returns JSON-encoded error messages (as returned by getMessages()).
Remove attribute
Remove a single decorator
Remove a display group by name
Remove element
Remove form subForm/subform
Move pointer to beginning of element/subform/display group loop
Set form attribute
Set multiple form attributes at once
Overwrites any previously set attributes.
Overwrite all decorators
Set default value for an element
Set default display group class
Set default values for elements
Sets values for all elements specified in the array of $defaults.
Set form description
Set flag to disable loading default decorators
Indicate whether or not translation should be disabled
Set all display group decorators as specified
Add multiple display groups (overwrites)
Set all element decorators as specified
Set all elements' filters
Set form elements (overwrites existing elements)
Set name of array elements belong to
Same as addErrorMessages(), but clears custom error message stack first
Overwrite any previously set error messages and flag as failed validation
Set flag indicating elements belong to array
Set form method
Only values in $_methods() allowed
Set form state from options array
Set plugin loaders for use with decorators and elements
Set all subform decorators as specified
Set multiple form subForms/subforms (overwrites)
Set translator object
Set view object
Is translation disabled?
Determine if current element/subform/display group is valid
Add a display group object (used with cloning)
This is a helper function until php 5.3 is widespreaded
Converts given arrayPath to an array and attaches given value at the end of it.
Given an array, an optional arrayPath and a key this method dissolves the arrayPath and unsets the key within the array if it exists.
Extract the value by walking the array using given array path.
Given an array path such as foo[bar][baz], returns the value of the last element (in this case, 'baz').
Determine array key name from given value
Given a value such as foo[bar][baz], returns the last element (in this case, 'baz').
Instantiate a decorator based on class name or class name fragment
Retrieve optionally translated custom error messages
Get the value of $_isRendered member
Lazy-load a decorator
Set array to which elements belong
When calling renderFormElements or render this method
is used to set $_isRendered member to prevent repeatedly merging belongsTo setting
Sort items according to their order
Overloading: allow rendering specific decorators
Call renderDecoratorName() to render a specific decorator.
Clone form object and all children
Overloading: access to elements, form groups, and display groups
Overloading: access to elements, form groups, and display groups
Overloading: access to elements, form groups, and display groups
Overloading: access to elements, form groups, and display groups
Plugin loader type constants
Plugin loader type constants
Encoding type constants
Encoding type constants
Method type constants
Method type constants
Method type constants
Method type constants
Documentation generated on Mon, 21 Jun 2010 15:24:21 -0400 by phpDocumentor 1.4.3