Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Zend_Form_DisplayGroup
array $_attribs = 'array'
Group attributes
array $_decorators = 'array'
Display group decorators
string $_description = ''
Description
bool $_disableLoadDefaultDecorators = 'false'
Should we disable loading the default decorators?
array $_elementOrder = 'array'
Element order
array $_elements = 'array'
Elements
bool $_groupUpdated = 'false'
Whether or not a new element has been added to the group
Zend_Loader_PluginLoader $_loader = ''
Plugin loader for decorators
string $_name = ''
Group name
int $_order = ''
Group order
Zend_Translate $_translator = ''
bool $_translatorDisabled = 'false'
Is translation disabled?
Zend_View_Interface $_view = ''
__call(
string $method, array $args
)
:
string
Overloading: allow rendering specific decorators
Call renderDecoratorName() to render a specific decorator.
__construct(
string $name, Zend_Loader_PluginLoader $loader, array|Zend_Config $options
=
null
)
:
void
Constructor
__toString(
)
:
string
String representation of group
_getDecorator(
string $name, null|array $options
=
null
)
:
Zend_Form_Decorator_Interface
Instantiate a decorator based on class name or class name fragment
_loadDecorator(
array $decorator, mixed $name
)
:
Zend_Form_Decorator_Interface
Lazy-load a decorator
_sort(
)
:
void
Sort items according to their order
addAttribs(
array $attribs
)
:
Zend_Form_DisplayGroup
Add multiple form attributes at once
addDecorator(
string|Zend_Form_Decorator_Interface $decorator, array|Zend_Config $options
=
null
)
:
Zend_Form_DisplayGroup
Add a decorator for rendering the group
addDecorators(
array $decorators
)
:
Zend_Form_DisplayGroup
Add many decorators at once
addElement(
Zend_Form_Element $element
)
:
Zend_Form_DisplayGroup
Add element to stack
addElements(
array $elements
)
:
Zend_Form_DisplayGroup
Add multiple elements at once
addPrefixPath(
string $prefix, string $path
)
:
Zend_Form_DisplayGroup
Add a prefix path for the plugin loader
addPrefixPaths(
array $spec
)
:
Zend_Form_DisplayGroup
Add several prefix paths at once
clearAttribs(
)
:
Zend_Form
Clear all form attributes
clearDecorators(
)
:
Zend_Form_DisplayGroup
Clear all decorators
clearElements(
)
:
Zend_Form_DisplayGroup
Remove all elements
count(
)
:
int
Count of elements/subforms that are iterable
current(
)
:
Zend_Form_Element
Current element
filterName(
string $value
)
:
string
Filter a name to only allow valid variable characters
getAttrib(
string $key
)
:
mixed
Retrieve a single form attribute
getAttribs(
)
:
array
Retrieve all form attributes/metadata
getDecorator(
string $name
)
:
false|Zend_Form_Decorator_Abstract
Retrieve a registered decorator
getDecorators(
)
:
array
Retrieve all decorators
getDescription(
)
:
string
Get description
getElement(
string $name
)
:
Zend_Form_Element|null
Retrieve element
getElements(
)
:
array
Retrieve elements
getFullyQualifiedName(
)
:
string
Get fully qualified name
Places name as subitem of array and/or appends brackets.
getId(
)
:
string
Get element id
getLegend(
)
:
string
Retrieve group legend
getName(
)
:
string
Retrieve group name
getOrder(
)
:
int
Retrieve group order
getPluginLoader(
)
:
Zend_Loader_PluginLoader
Retrieve plugin loader
getTranslator(
)
:
Zend_Translate_Adapter|null
Retrieve translator object
getView(
)
:
Zend_View_Interface
Retrieve view
init(
)
:
void
Initialize object; used by extending classes
key(
)
:
string
Current element
loadDefaultDecorators(
)
:
void
Load default decorators
loadDefaultDecoratorsIsDisabled(
)
:
bool
Should we load the default decorators?
next(
)
:
void
Move pointer to next element
removeAttrib(
string $key
)
:
bool
Remove attribute
removeDecorator(
string $name
)
:
bool
Remove a single decorator
removeElement(
string $name
)
:
boolean
Remove a single element
render(
$view
=
null
)
:
string
Render display group
rewind(
)
:
void
Move pointer to beginning of element loop
setAttrib(
string $key, mixed $value
)
:
Zend_Form_DisplayGroup
Set group attribute
setAttribs(
array $attribs
)
:
Zend_Form_DisplayGroup
Set multiple form attributes at once
Overwrites any previously set attributes.
setConfig(
Zend_Config $config
)
:
Zend_Form_DisplayGroup
Set options from config object
setDecorators(
array $decorators
)
:
Zend_Form_DisplayGroup
Overwrite all decorators
setDescription(
string $value
)
:
Zend_Form_DisplayGroup
Set description
setDisableLoadDefaultDecorators(
bool $flag
)
:
Zend_Form_Element
Set flag to disable loading default decorators
setDisableTranslator(
bool $flag
)
:
Zend_Form_DisplayGroup
Indicate whether or not translation should be disabled
setElements(
array $elements
)
:
Zend_Form_DisplayGroup
Set multiple elements at once (overwrites)
setLegend(
string $legend
)
:
Zend_Form_DisplayGroup
Set group legend
setName(
string $name
)
:
Zend_Form_DisplayGroup
Set group name
setOptions(
array $options
)
:
Zend_Form_DisplayGroup
Set options
setOrder(
int $order
)
:
Zend_Form_Element
Set group order
setPluginLoader(
Zend_Loader_PluginLoader $loader
)
:
Zend_Form_DisplayGroup
Set plugin loader
setTranslator(
Zend_Translate|Zend_Translate_Adapter|null $translator
=
null
)
:
Zend_Form_DisplayGroup
Set translator object
setView(
Zend_View_Interface $view
=
null
)
:
Zend_Form_DisplayGroup
Set view
translatorIsDisabled(
)
:
bool
Is translation disabled?
valid(
)
:
bool
Determine if current element/subform/display group is valid