Zend Framework
1.12
|
Public Member Functions | |
__construct ($options=null) | |
Constructor. | |
__clone () | |
Clone form object and all children. | |
reset () | |
Reset values of form. | |
init () | |
Initialize form (used by extending classes) | |
setOptions (array $options) | |
Set form state from options array. | |
setConfig (Zend_Config $config) | |
Set form state from config object. | |
setPluginLoader (Zend_Loader_PluginLoader_Interface $loader, $type=null) | |
Set plugin loaders for use with decorators and elements. | |
getPluginLoader ($type=null) | |
Retrieve plugin loader for given type. | |
addPrefixPath ($prefix, $path, $type=null) | |
Add prefix path for plugin loader. | |
addPrefixPaths (array $spec) | |
Add many prefix paths at once. | |
addElementPrefixPath ($prefix, $path, $type=null) | |
Add prefix path for all elements. | |
addElementPrefixPaths (array $spec) | |
Add prefix paths for all elements. | |
addDisplayGroupPrefixPath ($prefix, $path) | |
Add prefix path for all display groups. | |
addDisplayGroupPrefixPaths (array $spec) | |
Add multiple display group prefix paths at once. | |
setAttrib ($key, $value) | |
Set form attribute. | |
addAttribs (array $attribs) | |
Add multiple form attributes at once. | |
setAttribs (array $attribs) | |
Set multiple form attributes at once. | |
getAttrib ($key) | |
Retrieve a single form attribute. | |
getAttribs () | |
Retrieve all form attributes/metadata. | |
removeAttrib ($key) | |
Remove attribute. | |
clearAttribs () | |
Clear all form attributes. | |
setAction ($action) | |
Set form action. | |
getAction () | |
Get form action. | |
setMethod ($method) | |
Set form method. | |
getMethod () | |
Retrieve form method. | |
setEnctype ($value) | |
Set encoding type. | |
getEnctype () | |
Get encoding type. | |
filterName ($value, $allowBrackets=false) | |
Filter a name to only allow valid variable characters. | |
setName ($name) | |
Set form name. | |
getName () | |
Get name attribute. | |
getFullyQualifiedName () | |
Get fully qualified name. | |
getId () | |
Get element id. | |
setLegend ($value) | |
Set form legend. | |
getLegend () | |
Get form legend. | |
setDescription ($value) | |
Set form description. | |
getDescription () | |
Retrieve form description. | |
setOrder ($index) | |
Set form order. | |
getOrder () | |
Get form order. | |
addElement ($element, $name=null, $options=null) | |
Add a new element. | |
createElement ($type, $name, $options=null) | |
Create an element. | |
addElements (array $elements) | |
Add multiple elements at once. | |
setElements (array $elements) | |
Set form elements (overwrites existing elements) | |
getElement ($name) | |
Retrieve a single element. | |
getElements () | |
Retrieve all elements. | |
removeElement ($name) | |
Remove element. | |
clearElements () | |
Remove all form elements. | |
setDefaults (array $defaults) | |
Set default values for elements. | |
setDefault ($name, $value) | |
Set default value for an element. | |
getValue ($name) | |
Retrieve value for single element. | |
getValues ($suppressArrayNotation=false) | |
Retrieve all form element values. | |
getValidValues ($data, $suppressArrayNotation=false) | |
Returns only the valid values from the given form input. | |
getUnfilteredValue ($name) | |
Get unfiltered element value. | |
getUnfilteredValues () | |
Retrieve all unfiltered element values. | |
setElementFilters (array $filters) | |
Set all elements' filters. | |
setElementsBelongTo ($array) | |
Set name of array elements belong to. | |
getElementsBelongTo () | |
Get name of array elements belong to. | |
setIsArray ($flag) | |
Set flag indicating elements belong to array. | |
isArray () | |
Get flag indicating if elements belong to an array. | |
addSubForm (Zend_Form $form, $name, $order=null) | |
Add a form group/subform. | |
addSubForms (array $subForms) | |
Add multiple form subForms/subforms at once. | |
setSubForms (array $subForms) | |
Set multiple form subForms/subforms (overwrites) | |
getSubForm ($name) | |
Retrieve a form subForm/subform. | |
getSubForms () | |
Retrieve all form subForms/subforms. | |
removeSubForm ($name) | |
Remove form subForm/subform. | |
clearSubForms () | |
Remove all form subForms/subforms. | |
setDefaultDisplayGroupClass ($class) | |
Set default display group class. | |
getDefaultDisplayGroupClass () | |
Retrieve default display group class. | |
addDisplayGroup (array $elements, $name, $options=null) | |
Add a display group. | |
addDisplayGroups (array $groups) | |
Add multiple display groups at once. | |
setDisplayGroups (array $groups) | |
Add multiple display groups (overwrites) | |
getDisplayGroup ($name) | |
Return a display group. | |
getDisplayGroups () | |
Return all display groups. | |
removeDisplayGroup ($name) | |
Remove a display group by name. | |
clearDisplayGroups () | |
Remove all display groups. | |
populate (array $values) | |
Populate form. | |
getElementsAndSubFormsOrdered () | |
Returns a one dimensional numerical indexed array with the Elements, SubForms and Elements from DisplayGroups as Values. | |
isValid ($data) | |
Validate the form. | |
isValidPartial (array $data) | |
Validate a partial form. | |
processAjax (array $data) | |
Process submitted AJAX data. | |
addErrorMessage ($message) | |
Add a custom error message to return in the event of failed validation. | |
addErrorMessages (array $messages) | |
Add multiple custom error messages to return in the event of failed validation. | |
setErrorMessages (array $messages) | |
Same as addErrorMessages(), but clears custom error message stack first. | |
getErrorMessages () | |
Retrieve custom error messages. | |
clearErrorMessages () | |
Clear custom error messages stack. | |
markAsError () | |
Mark the element as being in a failed validation state. | |
addError ($message) | |
Add an error message and mark element as failed validation. | |
addErrors (array $messages) | |
Add multiple error messages and flag element as failed validation. | |
setErrors (array $messages) | |
Overwrite any previously set error messages and flag as failed validation. | |
persistData () | |
isErrors () | |
Are there errors in the form? | |
hasErrors () | |
Are there errors in the form? | |
getErrors ($name=null, $suppressArrayNotation=false) | |
Get error codes for all elements failing validation. | |
getMessages ($name=null, $suppressArrayNotation=false) | |
Retrieve error messages from elements failing validations. | |
getCustomMessages () | |
Retrieve translated custom error messages Proxies to _getErrorMessages(). | |
setView (Zend_View_Interface $view=null) | |
Set view object. | |
getView () | |
Retrieve view object. | |
addDecorator ($decorator, $options=null) | |
Add a decorator for rendering the element. | |
addDecorators (array $decorators) | |
Add many decorators at once. | |
setDecorators (array $decorators) | |
Overwrite all decorators. | |
getDecorator ($name) | |
Retrieve a registered decorator. | |
getDecorators () | |
Retrieve all decorators. | |
removeDecorator ($name) | |
Remove a single decorator. | |
clearDecorators () | |
Clear all decorators. | |
setElementDecorators (array $decorators, array $elements=null, $include=true) | |
Set all element decorators as specified. | |
setDisplayGroupDecorators (array $decorators) | |
Set all display group decorators as specified. | |
setSubFormDecorators (array $decorators) | |
Set all subform decorators as specified. | |
render (Zend_View_Interface $view=null) | |
Render form. | |
__toString () | |
Serialize as string. | |
setTranslator ($translator=null) | |
Set translator object. | |
getTranslator () | |
Retrieve translator object. | |
hasTranslator () | |
Does this form have its own specific translator? | |
setDisableTranslator ($flag) | |
Indicate whether or not translation should be disabled. | |
translatorIsDisabled () | |
Is translation disabled? | |
__get ($name) | |
Overloading: access to elements, form groups, and display groups. | |
__set ($name, $value) | |
Overloading: access to elements, form groups, and display groups. | |
__isset ($name) | |
Overloading: access to elements, form groups, and display groups. | |
__unset ($name) | |
Overloading: access to elements, form groups, and display groups. | |
__call ($method, $args) | |
Overloading: allow rendering specific decorators. | |
current () | |
Current element/subform/display group. | |
key () | |
Current element/subform/display group name. | |
next () | |
Move pointer to next element/subform/display group. | |
rewind () | |
Move pointer to beginning of element/subform/display group loop. | |
valid () | |
Determine if current element/subform/display group is valid. | |
count () | |
Count of elements/subforms that are iterable. | |
setDisableLoadDefaultDecorators ($flag) | |
Set flag to disable loading default decorators. | |
loadDefaultDecoratorsIsDisabled () | |
Should we load the default decorators? | |
loadDefaultDecorators () | |
Load the default decorators. | |
removeFromIteration ($name) | |
Remove an element from iteration. | |
![]() | |
getMessages () | |
Returns an array of messages that explain why the most recent isValid() call returned false. | |
Static Public Member Functions | |
static | setDefaultTranslator ($translator=null) |
Set global default translator object. | |
static | getDefaultTranslator () |
Get global default translator object. | |
static | hasDefaultTranslator () |
Is there a default translation object set? | |
Public Attributes | |
const | DECORATOR = 'DECORATOR' |
#@+ Plugin loader type constants | |
const | ELEMENT = 'ELEMENT' |
const | METHOD_DELETE = 'delete' |
#@- | |
const | METHOD_GET = 'get' |
const | METHOD_POST = 'post' |
const | METHOD_PUT = 'put' |
const | ENCTYPE_URLENCODED = 'application/x-www-form-urlencoded' |
#@- | |
const | ENCTYPE_MULTIPART = 'multipart/form-data' |
Protected Member Functions | |
_setIsRendered () | |
When calling renderFormElements or render this method is used to set $_isRendered member to prevent repeatedly merging belongsTo setting. | |
_getIsRendered () | |
Get the value of $_isRendered member. | |
_setElementsBelongTo ($name=null) | |
Set array to which elements belong. | |
_addDisplayGroupObject (Zend_Form_DisplayGroup $group, $name=null) | |
Add a display group object (used with cloning) | |
_getArrayName ($value) | |
Determine array key name from given value. | |
_dissolveArrayValue ($value, $arrayPath) | |
Extract the value by walking the array using given array path. | |
_dissolveArrayUnsetKey ($array, $arrayPath, $key) | |
Given an array, an optional arrayPath and a key this method dissolves the arrayPath and unsets the key within the array if it exists. | |
_attachToArray ($value, $arrayPath) | |
Converts given arrayPath to an array and attaches given value at the end of it. | |
_array_replace_recursive (array $into) | |
This is a helper function until php 5.3 is widespreaded. | |
_getDecorator ($name, $options) | |
Instantiate a decorator based on class name or class name fragment. | |
_sort () | |
Sort items according to their order. | |
_loadDecorator (array $decorator, $name) | |
Lazy-load a decorator. | |
_getErrorMessages () | |
Retrieve optionally translated custom error messages. | |
Protected Attributes | |
$_attribs = array() | |
$_decorators = array() | |
$_defaultDisplayGroupClass = 'Zend_Form_DisplayGroup' | |
$_description | |
$_disableLoadDefaultDecorators = false | |
$_displayGroupPrefixPaths = array() | |
$_displayGroups = array() | |
$_elementDecorators | |
$_elementPrefixPaths = array() | |
$_elements = array() | |
$_elementsBelongTo | |
$_errorMessages = array() | |
$_errorsExist = false | |
$_errorsForced = false | |
$_formOrder | |
$_isArray = false | |
$_legend | |
$_loaders = array() | |
$_methods = array('delete', 'get', 'post', 'put') | |
$_order = array() | |
$_orderUpdated = false | |
$_subFormPrefixPaths = array() | |
$_subForms = array() | |
$_translator | |
$_translatorDisabled = false | |
$_view | |
$_isRendered = false | |
Static Protected Attributes | |
static | $_translatorDefault |
__construct | ( | $options = null | ) |
Constructor.
Registers form view helper as decorator
mixed | $options |
__call | ( | $method, | |
$args | |||
) |
Overloading: allow rendering specific decorators.
Call renderDecoratorName() to render a specific decorator.
string | $method | |
array | $args |
Zend_Form_Exception | for invalid decorator or invalid method call |
__clone | ( | ) |
Clone form object and all children.
__get | ( | $name | ) |
Overloading: access to elements, form groups, and display groups.
string | $name |
__isset | ( | $name | ) |
Overloading: access to elements, form groups, and display groups.
string | $name |
__set | ( | $name, | |
$value | |||
) |
Overloading: access to elements, form groups, and display groups.
string | $name | |
Zend_Form_Element | Zend_Form | $value |
Zend_Form_Exception | for invalid $value |
__toString | ( | ) |
__unset | ( | $name | ) |
Overloading: access to elements, form groups, and display groups.
string | $name |
|
protected |
Add a display group object (used with cloning)
Zend_Form_DisplayGroup | $group | |
string | null | $name |
|
protected |
This is a helper function until php 5.3 is widespreaded.
array | $into | protected |
|
protected |
Converts given arrayPath to an array and attaches given value at the end of it.
mixed | $value | The value to attach |
string | $arrayPath | Given array path to convert and attach to. |
|
protected |
Given an array, an optional arrayPath and a key this method dissolves the arrayPath and unsets the key within the array if it exists.
array | $array | |
string | null | $arrayPath | |
string | $key |
|
protected |
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').
array | $value | Array to walk |
string | $arrayPath | Array notation path of the part to extract |
|
protected |
Determine array key name from given value.
Given a value such as foo[bar][baz], returns the last element (in this case, 'baz').
string | $value |
|
protected |
Instantiate a decorator based on class name or class name fragment.
string | $name | |
null | array | $options |
|
protected |
Retrieve optionally translated custom error messages.
|
protected |
Get the value of $_isRendered member.
|
protected |
Lazy-load a decorator.
array | $decorator | Decorator type and options |
mixed | $name | Decorator name or alias |
|
protected |
Set array to which elements belong.
string | $name | Element name |
|
protected |
When calling renderFormElements or render this method is used to set $_isRendered member to prevent repeatedly merging belongsTo setting.
|
protected |
Sort items according to their order.
addAttribs | ( | array | $attribs | ) |
addDecorator | ( | $decorator, | |
$options = null |
|||
) |
Add a decorator for rendering the element.
string | Zend_Form_Decorator_Interface | $decorator | |
array | Zend_Config | $options | Options with which to initialize decorator |
addDecorators | ( | array | $decorators | ) |
addDisplayGroup | ( | array | $elements, |
$name, | |||
$options = null |
|||
) |
Add a display group.
Groups named elements for display purposes.
If a referenced element does not yet exist in the form, it is omitted.
array | $elements | |
string | $name | |
array | Zend_Config | $options |
Zend_Form_Exception | if no valid elements provided |
addDisplayGroupPrefixPath | ( | $prefix, | |
$path | |||
) |
addDisplayGroupPrefixPaths | ( | array | $spec | ) |
addDisplayGroups | ( | array | $groups | ) |
addElement | ( | $element, | |
$name = null , |
|||
$options = null |
|||
) |
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.
string | Zend_Form_Element | $element | |
string | $name | |
array | Zend_Config | $options |
Zend_Form_Exception | on invalid element |
addElementPrefixPath | ( | $prefix, | |
$path, | |||
$type = null |
|||
) |
addElementPrefixPaths | ( | array | $spec | ) |
addElements | ( | array | $elements | ) |
addError | ( | $message | ) |
Add an error message and mark element as failed validation.
string | $message |
addErrorMessage | ( | $message | ) |
Add a custom error message to return in the event of failed validation.
string | $message |
addErrorMessages | ( | array | $messages | ) |
Add multiple custom error messages to return in the event of failed validation.
array | $messages |
addErrors | ( | array | $messages | ) |
Add multiple error messages and flag element as failed validation.
array | $messages |
addPrefixPath | ( | $prefix, | |
$path, | |||
$type = null |
|||
) |
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:
Otherwise, the path prefix is set on the appropriate plugin loader.
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/'
string | $prefix | |
string | $path | |
string | $type |
Zend_Form_Exception | for invalid type |
addPrefixPaths | ( | array | $spec | ) |
addSubForm | ( | Zend_Form | $form, |
$name, | |||
$order = null |
|||
) |
addSubForms | ( | array | $subForms | ) |
clearAttribs | ( | ) |
Clear all form attributes.
clearDecorators | ( | ) |
Clear all decorators.
clearDisplayGroups | ( | ) |
Remove all display groups.
clearElements | ( | ) |
Remove all form elements.
clearErrorMessages | ( | ) |
Clear custom error messages stack.
clearSubForms | ( | ) |
Remove all form subForms/subforms.
count | ( | ) |
Count of elements/subforms that are iterable.
createElement | ( | $type, | |
$name, | |||
$options = null |
|||
) |
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.).
string | $type | |
string | $name | |
array | Zend_Config | $options |
current | ( | ) |
Current element/subform/display group.
filterName | ( | $value, | |
$allowBrackets = false |
|||
) |
Filter a name to only allow valid variable characters.
string | $value | |
bool | $allowBrackets |
getAction | ( | ) |
Get form action.
Sets default to '' if not set.
getAttrib | ( | $key | ) |
Retrieve a single form attribute.
string | $key |
getAttribs | ( | ) |
Retrieve all form attributes/metadata.
getCustomMessages | ( | ) |
Retrieve translated custom error messages Proxies to _getErrorMessages().
getDecorator | ( | $name | ) |
Retrieve a registered decorator.
string | $name |
getDecorators | ( | ) |
Retrieve all decorators.
getDefaultDisplayGroupClass | ( | ) |
Retrieve default display group class.
|
static |
Get global default translator object.
getDescription | ( | ) |
Retrieve form description.
getDisplayGroup | ( | $name | ) |
Return a display group.
string | $name |
getDisplayGroups | ( | ) |
Return all display groups.
getElement | ( | $name | ) |
Retrieve a single element.
string | $name |
getElements | ( | ) |
Retrieve all elements.
getElementsAndSubFormsOrdered | ( | ) |
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.
protected
getElementsBelongTo | ( | ) |
Get name of array elements belong to.
getEnctype | ( | ) |
Get encoding type.
getErrorMessages | ( | ) |
Retrieve custom error messages.
getErrors | ( | $name = null , |
|
$suppressArrayNotation = false |
|||
) |
Get error codes for all elements failing validation.
string | $name |
getFullyQualifiedName | ( | ) |
Get fully qualified name.
Places name as subitem of array and/or appends brackets.
getId | ( | ) |
Get element id.
getLegend | ( | ) |
Get form legend.
getMessages | ( | $name = null , |
|
$suppressArrayNotation = false |
|||
) |
Retrieve error messages from elements failing validations.
string | $name | |
bool | $suppressArrayNotation |
getMethod | ( | ) |
Retrieve form method.
getName | ( | ) |
Get name attribute.
getOrder | ( | ) |
Get form order.
getPluginLoader | ( | $type = null | ) |
Retrieve plugin loader for given type.
$type may be one of:
If a plugin loader does not exist for the given type, defaults are created.
string | $type |
getSubForm | ( | $name | ) |
Retrieve a form subForm/subform.
string | $name |
getSubForms | ( | ) |
Retrieve all form subForms/subforms.
getTranslator | ( | ) |
Retrieve translator object.
getUnfilteredValue | ( | $name | ) |
Get unfiltered element value.
string | $name |
getUnfilteredValues | ( | ) |
Retrieve all unfiltered element values.
getValidValues | ( | $data, | |
$suppressArrayNotation = false |
|||
) |
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.
array | $data | |
bool | $suppressArrayNotation |
getValue | ( | $name | ) |
Retrieve value for single element.
string | $name |
getValues | ( | $suppressArrayNotation = false | ) |
Retrieve all form element values.
bool | $suppressArrayNotation |
getView | ( | ) |
Retrieve view object.
If none registered, attempts to pull from ViewRenderer.
|
static |
Is there a default translation object set?
hasErrors | ( | ) |
Are there errors in the form?
hasTranslator | ( | ) |
Does this form have its own specific translator?
init | ( | ) |
Initialize form (used by extending classes)
isArray | ( | ) |
Get flag indicating if elements belong to an array.
isErrors | ( | ) |
isValid | ( | $data | ) |
isValidPartial | ( | array | $data | ) |
Validate a partial form.
Does not check for required flags.
array | $data |
key | ( | ) |
Current element/subform/display group name.
loadDefaultDecorators | ( | ) |
Load the default decorators.
loadDefaultDecoratorsIsDisabled | ( | ) |
Should we load the default decorators?
markAsError | ( | ) |
Mark the element as being in a failed validation state.
next | ( | ) |
Move pointer to next element/subform/display group.
persistData | ( | ) |
populate | ( | array | $values | ) |
processAjax | ( | array | $data | ) |
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()).
array | $data |
removeAttrib | ( | $key | ) |
Remove attribute.
string | $key |
removeDecorator | ( | $name | ) |
Remove a single decorator.
string | $name |
removeDisplayGroup | ( | $name | ) |
Remove a display group by name.
string | $name |
removeElement | ( | $name | ) |
Remove element.
string | $name |
removeFromIteration | ( | $name | ) |
Remove an element from iteration.
string | $name | Element/group/form name |
removeSubForm | ( | $name | ) |
Remove form subForm/subform.
string | $name |
render | ( | Zend_View_Interface | $view = null | ) |
reset | ( | ) |
Reset values of form.
rewind | ( | ) |
Move pointer to beginning of element/subform/display group loop.
setAction | ( | $action | ) |
setAttrib | ( | $key, | |
$value | |||
) |
setAttribs | ( | array | $attribs | ) |
Set multiple form attributes at once.
Overwrites any previously set attributes.
array | $attribs |
setConfig | ( | Zend_Config | $config | ) |
setDecorators | ( | array | $decorators | ) |
setDefault | ( | $name, | |
$value | |||
) |
setDefaultDisplayGroupClass | ( | $class | ) |
setDefaults | ( | array | $defaults | ) |
Set default values for elements.
Sets values for all elements specified in the array of $defaults.
array | $defaults |
|
static |
Set global default translator object.
Zend_Translate | Zend_Translate_Adapter | null | $translator |
setDescription | ( | $value | ) |
setDisableLoadDefaultDecorators | ( | $flag | ) |
setDisableTranslator | ( | $flag | ) |
setDisplayGroupDecorators | ( | array | $decorators | ) |
setDisplayGroups | ( | array | $groups | ) |
setElementDecorators | ( | array | $decorators, |
array | $elements = null , |
||
$include = true |
|||
) |
Set all element decorators as specified.
array | $decorators | |
array | null | $elements | Specific elements to decorate or exclude from decoration |
bool | $include | Whether $elements is an inclusion or exclusion list |
setElementFilters | ( | array | $filters | ) |
setElements | ( | array | $elements | ) |
setElementsBelongTo | ( | $array | ) |
setEnctype | ( | $value | ) |
setErrorMessages | ( | array | $messages | ) |
Same as addErrorMessages(), but clears custom error message stack first.
array | $messages |
setErrors | ( | array | $messages | ) |
Overwrite any previously set error messages and flag as failed validation.
array | $messages |
setIsArray | ( | $flag | ) |
setLegend | ( | $value | ) |
setMethod | ( | $method | ) |
Set form method.
Only values in $_methods() allowed
string | $method |
Zend_Form_Exception |
setName | ( | $name | ) |
setOptions | ( | array | $options | ) |
setOrder | ( | $index | ) |
setPluginLoader | ( | Zend_Loader_PluginLoader_Interface | $loader, |
$type = null |
|||
) |
Set plugin loaders for use with decorators and elements.
Zend_Loader_PluginLoader_Interface | $loader | |
string | $type | 'decorator' or 'element' |
Zend_Form_Exception | on invalid type |
setSubFormDecorators | ( | array | $decorators | ) |
setSubForms | ( | array | $subForms | ) |
setTranslator | ( | $translator = null | ) |
Set translator object.
Zend_Translate | Zend_Translate_Adapter | null | $translator |
setView | ( | Zend_View_Interface | $view = null | ) |
translatorIsDisabled | ( | ) |
Is translation disabled?
valid | ( | ) |
Determine if current element/subform/display group is valid.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
const DECORATOR = 'DECORATOR' |
#@+ Plugin loader type constants
const ELEMENT = 'ELEMENT' |
const ENCTYPE_MULTIPART = 'multipart/form-data' |
const ENCTYPE_URLENCODED = 'application/x-www-form-urlencoded' |
#@-
#@+ Encoding type constants
const METHOD_DELETE = 'delete' |
#@-
#@+ Method type constants
const METHOD_GET = 'get' |
const METHOD_POST = 'post' |
const METHOD_PUT = 'put' |