Zend_Form_SubForm

category Zend
package Zend_Form
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
version $Id$
inherited_from \Zend_Form

 Methods

Overloading: allow rendering specific decorators

__call(string $method, array $args) : string
Inherited

Call renderDecoratorName() to render a specific decorator.

Parameters

$method

string

$args

array

Exceptions

\Zend_Form_Exception for invalid decorator or invalid method call

Returns

string

Clone form object and all children

__clone() : void
Inherited

Constructor

__construct(mixed $options = null
Inherited

Registers form view helper as decorator

Parameters

$options

mixed

Overloading: access to elements, form groups, and display groups

__get(string $name) : \Zend_Form_Element | \Zend_Form | null
Inherited

Parameters

$name

string

Returns

\Zend_Form_Element\Zend_Formnull

Overloading: access to elements, form groups, and display groups

__isset(string $name) : boolean
Inherited

Parameters

$name

string

Returns

boolean

Overloading: access to elements, form groups, and display groups

__set(string $name, \Zend_Form_Element|\Zend_Form $value) : void
Inherited

Parameters

$name

string

$value

\Zend_Form_Element\Zend_Form

Exceptions

\Zend_Form_Exception for invalid $value

Serialize as string

__toString() : string
Inherited

Proxies to \render().

Returns

string

Overloading: access to elements, form groups, and display groups

__unset(string $name) : void
Inherited

Parameters

$name

string

Add multiple form attributes at once

addAttribs(array $attribs) : \Zend_Form
Inherited

Parameters

$attribs

array

Returns

\Zend_Form

Add a decorator for rendering the element

addDecorator(string|\Zend_Form_Decorator_Interface $decorator, array|\Zend_Config $options = null) : \Zend_Form
Inherited

Parameters

$decorator

string\Zend_Form_Decorator_Interface

$options

array\Zend_Config

Options with which to initialize decorator

Exceptions

\Zend_Form_Exception

Returns

\Zend_Form

Add many decorators at once

addDecorators(array $decorators) : \Zend_Form
Inherited

Parameters

$decorators

array

Exceptions

\Zend_Form_Exception

Returns

\Zend_Form

Add a display group

addDisplayGroup(array $elements, string $name, array|\Zend_Config $options = null) : \Zend_Form
Inherited

Groups named elements for display purposes.

If a referenced element does not yet exist in the form, it is omitted.

Parameters

$elements

array

$name

string

$options

array\Zend_Config

Exceptions

\Zend_Form_Exception if no valid elements provided

Returns

\Zend_Form

Add prefix path for all display groups

addDisplayGroupPrefixPath(string $prefix, string $path) : \Zend_Form
Inherited

Parameters

$prefix

string

$path

string

Returns

\Zend_Form

Add multiple display group prefix paths at once

addDisplayGroupPrefixPaths(array $spec) : \Zend_Form
Inherited

Parameters

$spec

array

Returns

\Zend_Form

Add multiple display groups at once

addDisplayGroups(array $groups) : \Zend_Form
Inherited

Parameters

$groups

array

Returns

\Zend_Form

Add a new element

addElement(string|\Zend_Form_Element $element, string $name = null, array|\Zend_Config $options = null) : \Zend_Form
Inherited

$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.

Parameters

$element

string\Zend_Form_Element

$name

string

$options

array\Zend_Config

Exceptions

\Zend_Form_Exception on invalid element

Returns

\Zend_Form

Add prefix path for all elements

addElementPrefixPath(string $prefix, string $path, string $type = null) : \Zend_Form
Inherited

Parameters

$prefix

string

$path

string

$type

string

Returns

\Zend_Form

Add prefix paths for all elements

addElementPrefixPaths(array $spec) : \Zend_Form
Inherited

Parameters

$spec

array

Returns

\Zend_Form

Add multiple elements at once

addElements(array $elements) : \Zend_Form
Inherited

Parameters

$elements

array

Returns

\Zend_Form

Add an error message and mark element as failed validation

addError(string $message) : \Zend_Form
Inherited

Parameters

$message

string

Returns

\Zend_Form

Add a custom error message to return in the event of failed validation

addErrorMessage(string $message) : \Zend_Form
Inherited

Parameters

$message

string

Returns

\Zend_Form

Add multiple custom error messages to return in the event of failed validation

addErrorMessages(array $messages) : \Zend_Form
Inherited

Parameters

$messages

array

Returns

\Zend_Form

Add multiple error messages and flag element as failed validation

addErrors(array $messages) : \Zend_Form
Inherited

Parameters

$messages

array

Returns

\Zend_Form

Add prefix path for plugin loader

addPrefixPath(string $prefix, string $path, string $type = null) : \Zend_Form
Inherited

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'
  • elements: $prefix = $prefix . '_Element'

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/'

Parameters

$prefix

string

$path

string

$type

string

Exceptions

\Zend_Form_Exception for invalid type

Returns

\Zend_Form

Add many prefix paths at once

addPrefixPaths(array $spec) : \Zend_Form
Inherited

Parameters

$spec

array

Returns

\Zend_Form

Add a form group/subform

addSubForm(\Zend_Form $form, string $name, integer $order = null) : \Zend_Form
Inherited

Parameters

$form

\Zend_Form

$name

string

$order

integer

Returns

\Zend_Form

Add multiple form subForms/subforms at once

addSubForms(array $subForms) : \Zend_Form
Inherited

Parameters

$subForms

array

Returns

\Zend_Form

Clear all form attributes

clearAttribs() : \Zend_Form
Inherited

Returns

\Zend_Form

Clear all decorators

clearDecorators() : \Zend_Form
Inherited

Returns

\Zend_Form

Remove all display groups

clearDisplayGroups() : \Zend_Form
Inherited

Returns

\Zend_Form

Remove all form elements

clearElements() : \Zend_Form
Inherited

Returns

\Zend_Form

Clear custom error messages stack

clearErrorMessages() : \Zend_Form
Inherited

Returns

\Zend_Form

Remove all form subForms/subforms

clearSubForms() : \Zend_Form
Inherited

Returns

\Zend_Form

Count of elements/subforms that are iterable

count() : integer
Inherited

Returns

integer

Create an element

createElement(string $type, string $name, array|\Zend_Config $options = null) : \Zend_Form_Element
Inherited

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.).

Parameters

$type

string

$name

string

$options

array\Zend_Config

Exceptions

\Zend_Form_Exception

Returns

\Zend_Form_Element

Current element/subform/display group

current() : \Zend_Form_Element | \Zend_Form_DisplayGroup | \Zend_Form
Inherited

Exceptions

\Zend_Form_Exception

Returns

\Zend_Form_Element\Zend_Form_DisplayGroup\Zend_Form

Filter a name to only allow valid variable characters

filterName(string $value, boolean $allowBrackets = false) : string
Inherited

Parameters

$value

string

$allowBrackets

boolean

Returns

string

Get form action

getAction() : string
Inherited

Sets default to '' if not set.

Returns

string

Retrieve a single form attribute

getAttrib(string $key) : mixed
Inherited

Parameters

$key

string

Returns

mixed

Retrieve all form attributes/metadata

getAttribs() : array
Inherited

Returns

array

Retrieve translated custom error messages Proxies to {@link _getErrorMessages()}.

getCustomMessages() : array
Inherited

Returns

array

Retrieve a registered decorator

getDecorator(string $name) : false | \Zend_Form_Decorator_Abstract
Inherited

Parameters

$name

string

Returns

false\Zend_Form_Decorator_Abstract

Retrieve all decorators

getDecorators() : array
Inherited

Returns

array

Retrieve default display group class

getDefaultDisplayGroupClass() : string
Inherited

Returns

string

Get global default translator object

getDefaultTranslator() : null | \Zend_Translate
InheritedStatic

Returns

null\Zend_Translate

Retrieve form description

getDescription() : string
Inherited

Returns

string

Return a display group

getDisplayGroup(string $name) : \Zend_Form_DisplayGroup | null
Inherited

Parameters

$name

string

Returns

\Zend_Form_DisplayGroupnull

Return all display groups

getDisplayGroups() : array
Inherited

Returns

array

Retrieve a single element

getElement(string $name) : \Zend_Form_Element | null
Inherited

Parameters

$name

string

Returns

\Zend_Form_Elementnull

Retrieve all elements

getElements() : array
Inherited

Returns

array

Returns a one dimensional numerical indexed array with the Elements, SubForms and Elements from DisplayGroups as Values.

getElementsAndSubFormsOrdered() : array
Inherited

Subitems are inserted based on their order Setting if set, otherwise they are appended, the resulting numerical index may differ from the order value.

access protected

Returns

array

Get name of array elements belong to

getElementsBelongTo() : string | null
Inherited

Returns

stringnull

Get encoding type

getEnctype() : string
Inherited

Returns

string

Retrieve custom error messages

getErrorMessages() : array
Inherited

Returns

array

Get error codes for all elements failing validation

getErrors(string $name = null, boolean $suppressArrayNotation = false) : array
Inherited

Parameters

$name

string

$suppressArrayNotation

boolean

Returns

array

Get fully qualified name

getFullyQualifiedName() : string
Inherited

Places name as subitem of array and/or appends brackets.

Returns

string

Get element id

getId() : string
Inherited

Returns

string

Get form legend

getLegend() : string
Inherited

Returns

string

Retrieve error messages from elements failing validations

getMessages(string $name = null, boolean $suppressArrayNotation = false) : array
Inherited

If isValid() was never called or if the most recent isValid() call returned true, then this method returns an empty array.

inherited_from \Zend_Validate_Interface::getMessages()

Parameters

$name

string

$suppressArrayNotation

boolean

Returns

array

Retrieve form method

getMethod() : string
Inherited

Returns

string

Get name attribute

getName() : null | string
Inherited

Returns

nullstring

Get form order

getOrder() : integer | null
Inherited

Returns

integernull

Retrieve plugin loader for given type

getPluginLoader(string $type = null) : \Zend_Loader_PluginLoader_Interface
Inherited

$type may be one of:

  • decorator
  • element

If a plugin loader does not exist for the given type, defaults are created.

Parameters

$type

string

Exceptions

\Zend_Form_Exception

Returns

\Zend_Loader_PluginLoader_Interface

Retrieve a form subForm/subform

getSubForm(string $name) : \Zend_Form | null
Inherited

Parameters

$name

string

Returns

\Zend_Formnull

Retrieve all form subForms/subforms

getSubForms() : array
Inherited

Returns

array

Retrieve translator object

getTranslator() : \Zend_Translate | null
Inherited

Returns

\Zend_Translatenull

Get unfiltered element value

getUnfilteredValue(string $name) : mixed
Inherited

Parameters

$name

string

Returns

mixed

Retrieve all unfiltered element values

getUnfilteredValues() : array
Inherited

Returns

array

Returns only the valid values from the given form input.

getValidValues(array $data, boolean $suppressArrayNotation = false) : array
Inherited

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.

Parameters

$data

array

$suppressArrayNotation

boolean

Returns

array

Retrieve value for single element

getValue(string $name) : mixed
Inherited

Parameters

$name

string

Returns

mixed

Retrieve all form element values

getValues(boolean $suppressArrayNotation = false) : array
Inherited

Parameters

$suppressArrayNotation

boolean

Returns

array

Retrieve view object

getView() : \Zend_View_Interface | null
Inherited

If none registered, attempts to pull from ViewRenderer.

Returns

\Zend_View_Interfacenull

Is there a default translation object set?

hasDefaultTranslator() : boolean
InheritedStatic

Returns

boolean

Are there errors in the form?

hasErrors() : boolean
Inherited

Returns

boolean

Does this form have its own specific translator?

hasTranslator() : boolean
Inherited

Returns

boolean

Initialize form (used by extending classes)

init() : void
Inherited

Get flag indicating if elements belong to an array

isArray() : boolean
Inherited

Returns

boolean

Are there errors in the form?

isErrors() : boolean
Inherited
deprecated since 1.11.1 - use hasErrors() instead

Returns

boolean

Validate the form

isValid(array $data) : boolean
Inherited

If $value fails validation, then this method returns false, and getMessages() will return an array of messages that explain why the validation failed.

inherited_from \Zend_Validate_Interface::isValid()

Parameters

$data

array

Exceptions

\Zend_Form_Exception

Returns

boolean

Validate a partial form

isValidPartial(array $data) : boolean
Inherited

Does not check for required flags.

Parameters

$data

array

Returns

boolean

Current element/subform/display group name

key() : string
Inherited

Returns

string

Load the default decorators

loadDefaultDecorators() : \Zend_Form_SubForm
inherited_from \Zend_Form::loadDefaultDecorators()

Returns

\Zend_Form_SubForm

Load the default decorators

loadDefaultDecorators() : \Zend_Form
Inherited

Returns

\Zend_Form

Should we load the default decorators?

loadDefaultDecoratorsIsDisabled() : boolean
Inherited

Returns

boolean

Mark the element as being in a failed validation state

markAsError() : \Zend_Form
Inherited

Returns

\Zend_Form

Move pointer to next element/subform/display group

next() : void
Inherited

persistData()

persistData() 
Inherited

Populate form

populate(array $values) : \Zend_Form
Inherited

Proxies to \setDefaults()

Parameters

$values

array

Returns

\Zend_Form

Process submitted AJAX data

processAjax(array $data) : string
Inherited

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()).

Parameters

$data

array

Returns

stringJSON-encoded boolean true or error messages

Remove attribute

removeAttrib(string $key) : boolean
Inherited

Parameters

$key

string

Returns

boolean

Remove a single decorator

removeDecorator(string $name) : boolean
Inherited

Parameters

$name

string

Returns

boolean

Remove a display group by name

removeDisplayGroup(string $name) : boolean
Inherited

Parameters

$name

string

Returns

boolean

Remove element

removeElement(string $name) : boolean
Inherited

Parameters

$name

string

Returns

boolean

Remove an element from iteration

removeFromIteration(string $name) : void
Inherited

Parameters

$name

string

Element/group/form name

Remove form subForm/subform

removeSubForm(string $name) : boolean
Inherited

Parameters

$name

string

Returns

boolean

Render form

render(\Zend_View_Interface $view = null) : string
Inherited

Parameters

$view

\Zend_View_Interface

Returns

string

Reset values of form

reset() : \Zend_Form
Inherited

Returns

\Zend_Form

Move pointer to beginning of element/subform/display group loop

rewind() : void
Inherited

Set form action

setAction(string $action) : \Zend_Form
Inherited

Parameters

$action

string

Returns

\Zend_Form

Set form attribute

setAttrib(string $key, mixed $value) : \Zend_Form
Inherited

Parameters

$key

string

$value

mixed

Returns

\Zend_Form

Set multiple form attributes at once

setAttribs(array $attribs) : \Zend_Form
Inherited

Overwrites any previously set attributes.

Parameters

$attribs

array

Returns

\Zend_Form

Set form state from config object

setConfig(\Zend_Config $config) : \Zend_Form
Inherited

Parameters

$config

\Zend_Config

Returns

\Zend_Form

Overwrite all decorators

setDecorators(array $decorators) : \Zend_Form
Inherited

Parameters

$decorators

array

Returns

\Zend_Form

Set default value for an element

setDefault(string $name, mixed $value) : \Zend_Form
Inherited

Parameters

$name

string

$value

mixed

Returns

\Zend_Form

Set default display group class

setDefaultDisplayGroupClass(string $class) : \Zend_Form
Inherited

Parameters

$class

string

Returns

\Zend_Form

Set global default translator object

setDefaultTranslator(\Zend_Translate|\Zend_Translate_Adapter|null $translator = null) : void
InheritedStatic

Parameters

$translator

\Zend_Translate\Zend_Translate_Adapternull

Exceptions

\Zend_Form_Exception

Set default values for elements

setDefaults(array $defaults) : \Zend_Form
Inherited

Sets values for all elements specified in the array of $defaults.

Parameters

$defaults

array

Returns

\Zend_Form

Set form description

setDescription(string $value) : \Zend_Form
Inherited

Parameters

$value

string

Returns

\Zend_Form

Set flag to disable loading default decorators

setDisableLoadDefaultDecorators(boolean $flag) : \Zend_Form
Inherited

Parameters

$flag

boolean

Returns

\Zend_Form

Indicate whether or not translation should be disabled

setDisableTranslator(boolean $flag) : \Zend_Form
Inherited

Parameters

$flag

boolean

Returns

\Zend_Form

Set all display group decorators as specified

setDisplayGroupDecorators(array $decorators) : \Zend_Form
Inherited

Parameters

$decorators

array

Returns

\Zend_Form

Add multiple display groups (overwrites)

setDisplayGroups(array $groups) : \Zend_Form
Inherited

Parameters

$groups

array

Returns

\Zend_Form

Set all element decorators as specified

setElementDecorators(array $decorators, array|null $elements = null, boolean $include = true) : \Zend_Form
Inherited

Parameters

$decorators

array

$elements

arraynull

Specific elements to decorate or exclude from decoration

$include

boolean

Whether $elements is an inclusion or exclusion list

Returns

\Zend_Form

Set all elements' filters

setElementFilters(array $filters) : \Zend_Form
Inherited

Parameters

$filters

array

Returns

\Zend_Form

Set form elements (overwrites existing elements)

setElements(array $elements) : \Zend_Form
Inherited

Parameters

$elements

array

Returns

\Zend_Form

Set name of array elements belong to

setElementsBelongTo(string $array) : \Zend_Form
Inherited

Parameters

$array

string

Returns

\Zend_Form

Set encoding type

setEnctype(string $value) : \Zend_Form
Inherited

Parameters

$value

string

Returns

\Zend_Form

Same as addErrorMessages(), but clears custom error message stack first

setErrorMessages(array $messages) : \Zend_Form
Inherited

Parameters

$messages

array

Returns

\Zend_Form

Overwrite any previously set error messages and flag as failed validation

setErrors(array $messages) : \Zend_Form
Inherited

Parameters

$messages

array

Returns

\Zend_Form

Set flag indicating elements belong to array

setIsArray(boolean $flag) : \Zend_Form
Inherited

Parameters

$flag

boolean

Value of flag

Returns

\Zend_Form

Set form legend

setLegend(string $value) : \Zend_Form
Inherited

Parameters

$value

string

Returns

\Zend_Form

Set form method

setMethod(string $method) : \Zend_Form
Inherited

Only values in \$_methods() allowed

Parameters

$method

string

Exceptions

\Zend_Form_Exception

Returns

\Zend_Form

Set form name

setName(string $name) : \Zend_Form
Inherited

Parameters

$name

string

Exceptions

\Zend_Form_Exception

Returns

\Zend_Form

Set form state from options array

setOptions(array $options) : \Zend_Form
Inherited

Parameters

$options

array

Returns

\Zend_Form

Set form order

setOrder(integer $index) : \Zend_Form
Inherited

Parameters

$index

integer

Returns

\Zend_Form

Set plugin loaders for use with decorators and elements

setPluginLoader(\Zend_Loader_PluginLoader_Interface $loader, string $type = null) : \Zend_Form
Inherited

Parameters

$loader

\Zend_Loader_PluginLoader_Interface

$type

string

'decorator' or 'element'

Exceptions

\Zend_Form_Exception on invalid type

Returns

\Zend_Form

Set all subform decorators as specified

setSubFormDecorators(array $decorators) : \Zend_Form
Inherited

Parameters

$decorators

array

Returns

\Zend_Form

Set multiple form subForms/subforms (overwrites)

setSubForms(array $subForms) : \Zend_Form
Inherited

Parameters

$subForms

array

Returns

\Zend_Form

Set translator object

setTranslator(\Zend_Translate|\Zend_Translate_Adapter|null $translator = null) : \Zend_Form
Inherited

Parameters

$translator

\Zend_Translate\Zend_Translate_Adapternull

Exceptions

\Zend_Form_Exception

Returns

\Zend_Form

Set view object

setView(\Zend_View_Interface $view = null) : \Zend_Form
Inherited

Parameters

$view

\Zend_View_Interface

Returns

\Zend_Form

Is translation disabled?

translatorIsDisabled() : boolean
Inherited

Returns

boolean

Determine if current element/subform/display group is valid

valid() : boolean
Inherited

Returns

boolean

Add a display group object (used with cloning)

_addDisplayGroupObject(\Zend_Form_DisplayGroup $group, string|null $name = null) : \Zend_Form
Inherited

Parameters

$group

\Zend_Form_DisplayGroup

$name

stringnull

Exceptions

\Zend_Form_Exception

Returns

\Zend_Form

This is a helper function until php 5.3 is widespreaded

_array_replace_recursive(array $into) : array
Inherited

Parameters

$into

array

Returns

array

Converts given arrayPath to an array and attaches given value at the end of it.

_attachToArray(mixed $value, string $arrayPath) : array
Inherited

Parameters

$value

mixed

The value to attach

$arrayPath

string

Given array path to convert and attach to.

Returns

array

Given an array, an optional arrayPath and a key this method dissolves the arrayPath and unsets the key within the array if it exists.

_dissolveArrayUnsetKey(array $array, string|null $arrayPath, string $key) : array
Inherited

Parameters

$array

array

$arrayPath

stringnull

$key

string

Returns

array

Extract the value by walking the array using given array path.

_dissolveArrayValue(array $value, string $arrayPath) : string
Inherited

Given an array path such as foo[bar][baz], returns the value of the last element (in this case, 'baz').

Parameters

$value

array

Array to walk

$arrayPath

string

Array notation path of the part to extract

Returns

string

Determine array key name from given value

_getArrayName(string $value) : string
Inherited

Given a value such as foo[bar][baz], returns the last element (in this case, 'baz').

Parameters

$value

string

Returns

string

Instantiate a decorator based on class name or class name fragment

_getDecorator(string $name, null|array $options) : \Zend_Form_Decorator_Interface
Inherited

Parameters

$name

string

$options

nullarray

Returns

\Zend_Form_Decorator_Interface

Retrieve optionally translated custom error messages

_getErrorMessages() : array
Inherited

Returns

array

Get the value of $_isRendered member

_getIsRendered() 
Inherited

Lazy-load a decorator

_loadDecorator(array $decorator, mixed $name) : \Zend_Form_Decorator_Interface
Inherited

Parameters

$decorator

array

Decorator type and options

$name

mixed

Decorator name or alias

Returns

\Zend_Form_Decorator_Interface

Set array to which elements belong

_setElementsBelongTo(string $name = null) : void
Inherited

Parameters

$name

string

Element name

When calling renderFormElements or render this method is used to set $_isRendered member to prevent repeatedly merging belongsTo setting

_setIsRendered() 
Inherited

Sort items according to their order

_sort() : void
Inherited

Exceptions

\Zend_Form_Exception

 Properties

 

Form metadata and attributes

$_attribs : array

Default

array()
 

Decorators for rendering

$_decorators : array

Default

array()
 

Default display group class

$_defaultDisplayGroupClass : string

Default

'Zend_Form_DisplayGroup'
 

Form description

$_description : string

Default

 

Should we disable loading the default decorators?

$_disableLoadDefaultDecorators : boolean

Default

false
 

Display group prefix paths

$_displayGroupPrefixPaths : array

Default

array()
 

Groups of elements grouped for display purposes

$_displayGroups : array

Default

array()
 

Global decorators to apply to all elements

$_elementDecorators : null | array

Default

 

Prefix paths to use when creating elements

$_elementPrefixPaths : array

Default

array()
 

Form elements

$_elements : array

Default

array()
 

Array to which elements belong (if any)

$_elementsBelongTo : string

Default

 

Custom form-level error messages

$_errorMessages : array

Default

array()
 

Are there errors in the form?

$_errorsExist : boolean

Default

false
 

Has the form been manually flagged as an error?

$_errorsForced : boolean

Default

false
 

Form order

$_formOrder : integer | null

Default

 

Whether or not form elements are members of an array

$_isArray : boolean

Default

true
inherited_from \Zend_Form::_isArray
 

Whether or not form elements are members of an array

$_isArray : boolean

Default

false
 

$_isRendered

$_isRendered : boolean

Default

false
 

Form legend

$_legend : string

Default

 

Plugin loaders

$_loaders : array

Default

array()
 

Allowed form methods

$_methods : array

Default

array('delete', 'get', 'post', 'put')
 

Order in which to display and iterate elements

$_order : array

Default

array()
 

Whether internal order has been updated or not

$_orderUpdated : boolean

Default

false
 

Sub form prefix paths

$_subFormPrefixPaths : array

Default

array()
 

Sub forms

$_subForms : array

Default

array()
 

$_translator

$_translator : \Zend_Translate

Default

 

Global default translation adapter

$_translatorDefault : \Zend_Translate

Default

Static
 

is the translator disabled?

$_translatorDisabled : boolean

Default

false
 

$_view

$_view : \Zend_View_Interface

Default

 Constants

 

DECORATOR

DECORATOR = 'DECORATOR' 
 

ELEMENT

ELEMENT = 'ELEMENT' 
 

ENCTYPE_MULTIPART

ENCTYPE_MULTIPART = 'multipart/form-data' 
 

ENCTYPE_URLENCODED

ENCTYPE_URLENCODED = 'application/x-www-form-urlencoded' 
 

METHOD_DELETE

METHOD_DELETE = 'delete' 
 

METHOD_GET

METHOD_GET = 'get' 
 

METHOD_POST

METHOD_POST = 'post' 
 

METHOD_PUT

METHOD_PUT = 'put'