Form/DisplayGroup.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Form
\Zend_Form_DisplayGroup
- Implements
- Children
- \Zend_Dojo_Form_DisplayGroup
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Version
- $Id$
Properties

bool $_disableLoadDefaultDecorators = falsefalseDetails- Type
- bool

\Zend_Form $_form- Type
- \Zend_Form

bool $_groupUpdated = falsefalseDetails- Type
- bool
Methods

__call(string $method, array $args) : stringOverloading: allow rendering specific decorators
| Name | Type | Description |
|---|---|---|
| $method | string | |
| $args | array |
| Type | Description |
|---|---|
| string |
| Exception | Description |
|---|---|
| \Zend_Form_Exception | for invalid decorator or invalid method call |

__construct(string $name, \Zend_Loader_PluginLoader $loader, array | \Zend_Config $options = null) : voidConstructor
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $loader | \Zend_Loader_PluginLoader | |
| $options | array | \Zend_Config |

_getDecorator(string $name, null | array $options = null) : \Zend_Form_Decorator_InterfaceInstantiate a decorator based on class name or class name fragment
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $options | null | array |
| Type | Description |
|---|---|
| \Zend_Form_Decorator_Interface |

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

addAttribs(array $attribs) : \Zend_Form_DisplayGroupAdd multiple form attributes at once
| Name | Type | Description |
|---|---|---|
| $attribs | array |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

addDecorator(string | \Zend_Form_Decorator_Interface $decorator, array | \Zend_Config $options = null) : \Zend_Form_DisplayGroupAdd a decorator for rendering the group
| Name | Type | Description |
|---|---|---|
| $decorator | string | \Zend_Form_Decorator_Interface | |
| $options | array | \Zend_Config | Options with which to initialize decorator |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

addDecorators(array $decorators) : \Zend_Form_DisplayGroupAdd many decorators at once
| Name | Type | Description |
|---|---|---|
| $decorators | array |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

addElement(\Zend_Form_Element $element) : \Zend_Form_DisplayGroupAdd element to stack
| Name | Type | Description |
|---|---|---|
| $element | \Zend_Form_Element |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

addElements(array $elements) : \Zend_Form_DisplayGroupAdd multiple elements at once
| Name | Type | Description |
|---|---|---|
| $elements | array |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |
| Exception | Description |
|---|---|
| \Zend_Form_Exception | if any element is not a Zend_Form_Element |

addPrefixPath(string $prefix, string $path) : \Zend_Form_DisplayGroupAdd a prefix path for the plugin loader
| Name | Type | Description |
|---|---|---|
| $prefix | string | |
| $path | string |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

addPrefixPaths(array $spec) : \Zend_Form_DisplayGroupAdd several prefix paths at once
| Name | Type | Description |
|---|---|---|
| $spec | array |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

clearDecorators() : \Zend_Form_DisplayGroupClear all decorators
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

clearElements() : \Zend_Form_DisplayGroupRemove all elements
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

filterName(string $value) : stringFilter a name to only allow valid variable characters
| Name | Type | Description |
|---|---|---|
| $value | string |
| Type | Description |
|---|---|
| string |

getAttrib(string $key) : mixedRetrieve a single form attribute
| Name | Type | Description |
|---|---|---|
| $key | string |
| Type | Description |
|---|---|
| mixed |

getDecorator(string $name) : false | \Zend_Form_Decorator_AbstractRetrieve a registered decorator
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| false | \Zend_Form_Decorator_Abstract |

getElement(string $name) : \Zend_Form_Element | nullRetrieve element
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| \Zend_Form_Element | null |

getForm() : \Zend_Form | nullGet form object to which the group is attached
| Type | Description |
|---|---|
| \Zend_Form | null |

getFullyQualifiedName() : stringGet fully qualified name
| Type | Description |
|---|---|
| string |

getPluginLoader() : \Zend_Loader_PluginLoaderRetrieve plugin loader
| Type | Description |
|---|---|
| \Zend_Loader_PluginLoader |

getTranslator() : \Zend_Translate_Adapter | nullRetrieve translator object
| Type | Description |
|---|---|
| \Zend_Translate_Adapter | null |

hasTranslator() : boolDoes this display group have its own specific translator?
| Type | Description |
|---|---|
| bool |

loadDefaultDecorators() : \Zend_Form_DisplayGroupLoad default decorators
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

loadDefaultDecoratorsIsDisabled() : boolShould we load the default decorators?
| Type | Description |
|---|---|
| bool |

removeAttrib(string $key) : boolRemove attribute
| Name | Type | Description |
|---|---|---|
| $key | string |
| Type | Description |
|---|---|
| bool |

removeDecorator(string $name) : boolRemove a single decorator
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| bool |

removeElement(string $name) : booleanRemove a single element
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| boolean |

render( $view = null) : stringRender display group
| Name | Type | Description |
|---|---|---|
| $view |
| Type | Description |
|---|---|
| string |

setAttrib(string $key, mixed $value) : \Zend_Form_DisplayGroupSet group attribute
| Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | mixed |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

setAttribs(array $attribs) : \Zend_Form_DisplayGroupSet multiple form attributes at once
| Name | Type | Description |
|---|---|---|
| $attribs | array |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

setConfig(\Zend_Config $config) : \Zend_Form_DisplayGroupSet options from config object
| Name | Type | Description |
|---|---|---|
| $config | \Zend_Config |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

setDecorators(array $decorators) : \Zend_Form_DisplayGroupOverwrite all decorators
| Name | Type | Description |
|---|---|---|
| $decorators | array |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

setDescription(string $value) : \Zend_Form_DisplayGroupSet description
| Name | Type | Description |
|---|---|---|
| $value | string |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

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

setDisableTranslator(bool $flag) : \Zend_Form_DisplayGroupIndicate whether or not translation should be disabled
| Name | Type | Description |
|---|---|---|
| $flag | bool |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

setElements(array $elements) : \Zend_Form_DisplayGroupSet multiple elements at once (overwrites)
| Name | Type | Description |
|---|---|---|
| $elements | array |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

setForm(\Zend_Form $form) : \Zend_Form_DisplayGroupSet form object to which the display group is attached
| Name | Type | Description |
|---|---|---|
| $form | \Zend_Form |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

setLegend(string $legend) : \Zend_Form_DisplayGroupSet group legend
| Name | Type | Description |
|---|---|---|
| $legend | string |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

setName(string $name) : \Zend_Form_DisplayGroupSet group name
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

setOptions(array $options) : \Zend_Form_DisplayGroupSet options
| Name | Type | Description |
|---|---|---|
| $options | array |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

setOrder(int $order) : \Zend_Form_ElementSet group order
| Name | Type | Description |
|---|---|---|
| $order | int |
| Type | Description |
|---|---|
| \Zend_Form_Element |

setPluginLoader(\Zend_Loader_PluginLoader $loader) : \Zend_Form_DisplayGroupSet plugin loader
| Name | Type | Description |
|---|---|---|
| $loader | \Zend_Loader_PluginLoader |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

setTranslator(\Zend_Translate | \Zend_Translate_Adapter | null $translator = null) : \Zend_Form_DisplayGroupSet translator object
| Name | Type | Description |
|---|---|---|
| $translator | \Zend_Translate | \Zend_Translate_Adapter | null |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |

setView(\Zend_View_Interface $view = null) : \Zend_Form_DisplayGroupSet view
| Name | Type | Description |
|---|---|---|
| $view | \Zend_View_Interface |
| Type | Description |
|---|---|
| \Zend_Form_DisplayGroup |