Zend Framework
1.12
|
Public Member Functions | |
__construct ($name, Zend_Loader_PluginLoader $loader, $options=null) | |
Constructor. | |
init () | |
Initialize object; used by extending classes. | |
setOptions (array $options) | |
Set options. | |
setConfig (Zend_Config $config) | |
Set options from config object. | |
setAttrib ($key, $value) | |
Set group 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. | |
setForm (Zend_Form $form) | |
Set form object to which the display group is attached. | |
getForm () | |
Get form object to which the group is attached. | |
filterName ($value) | |
Filter a name to only allow valid variable characters. | |
setName ($name) | |
Set group name. | |
getName () | |
Retrieve group name. | |
getFullyQualifiedName () | |
Get fully qualified name. | |
getId () | |
Get element id. | |
setLegend ($legend) | |
Set group legend. | |
getLegend () | |
Retrieve group legend. | |
setDescription ($value) | |
Set description. | |
getDescription () | |
Get description. | |
setOrder ($order) | |
Set group order. | |
getOrder () | |
Retrieve group order. | |
addElement (Zend_Form_Element $element) | |
Add element to stack. | |
addElements (array $elements) | |
Add multiple elements at once. | |
setElements (array $elements) | |
Set multiple elements at once (overwrites) | |
getElement ($name) | |
Retrieve element. | |
getElements () | |
Retrieve elements. | |
removeElement ($name) | |
Remove a single element. | |
clearElements () | |
Remove all elements. | |
setPluginLoader (Zend_Loader_PluginLoader $loader) | |
Set plugin loader. | |
getPluginLoader () | |
Retrieve plugin loader. | |
addPrefixPath ($prefix, $path) | |
Add a prefix path for the plugin loader. | |
addPrefixPaths (array $spec) | |
Add several prefix paths at once. | |
setDisableLoadDefaultDecorators ($flag) | |
Set flag to disable loading default decorators. | |
loadDefaultDecoratorsIsDisabled () | |
Should we load the default decorators? | |
loadDefaultDecorators () | |
Load default decorators. | |
addDecorator ($decorator, $options=null) | |
Add a decorator for rendering the group. | |
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. | |
setView (Zend_View_Interface $view=null) | |
Set view. | |
getView () | |
Retrieve view. | |
render (Zend_View_Interface $view=null) | |
Render display group. | |
__toString () | |
String representation of group. | |
setTranslator ($translator=null) | |
Set translator object. | |
getTranslator () | |
Retrieve translator object. | |
hasTranslator () | |
Does this display group have its own specific translator? | |
setDisableTranslator ($flag) | |
Indicate whether or not translation should be disabled. | |
translatorIsDisabled () | |
Is translation disabled? | |
__call ($method, $args) | |
Overloading: allow rendering specific decorators. | |
current () | |
Current element. | |
key () | |
Current element. | |
next () | |
Move pointer to next element. | |
rewind () | |
Move pointer to beginning of element loop. | |
valid () | |
Determine if current element/subform/display group is valid. | |
count () | |
Count of elements/subforms that are iterable. | |
Protected Member Functions | |
_getDecorator ($name, $options=null) | |
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. | |
Protected Attributes | |
$_attribs = array() | |
$_decorators = array() | |
$_description | |
$_disableLoadDefaultDecorators = false | |
$_elementOrder = array() | |
$_elements = array() | |
$_form | |
$_groupUpdated = false | |
$_loader | |
$_name | |
$_order | |
$_translator | |
$_translatorDisabled = false | |
$_view | |
__construct | ( | $name, | |
Zend_Loader_PluginLoader | $loader, | ||
$options = null |
|||
) |
Constructor.
string | $name | |
Zend_Loader_PluginLoader | $loader | |
array | Zend_Config | $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 |
__toString | ( | ) |
String representation of group.
|
protected |
Instantiate a decorator based on class name or class name fragment.
string | $name | |
null | array | $options |
|
protected |
Lazy-load a decorator.
array | $decorator | Decorator type and options |
mixed | $name | Decorator name or alias |
|
protected |
Sort items according to their order.
addAttribs | ( | array | $attribs | ) |
addDecorator | ( | $decorator, | |
$options = null |
|||
) |
Add a decorator for rendering the group.
string | Zend_Form_Decorator_Interface | $decorator | |
array | Zend_Config | $options | Options with which to initialize decorator |
addDecorators | ( | array | $decorators | ) |
addElement | ( | Zend_Form_Element | $element | ) |
addElements | ( | array | $elements | ) |
Add multiple elements at once.
array | $elements |
Zend_Form_Exception | if any element is not a Zend_Form_Element |
addPrefixPath | ( | $prefix, | |
$path | |||
) |
Add a prefix path for the plugin loader.
string | $prefix | |
string | $path |
addPrefixPaths | ( | array | $spec | ) |
clearAttribs | ( | ) |
Clear all form attributes.
clearDecorators | ( | ) |
Clear all decorators.
clearElements | ( | ) |
Remove all elements.
count | ( | ) |
Count of elements/subforms that are iterable.
current | ( | ) |
Current element.
filterName | ( | $value | ) |
Filter a name to only allow valid variable characters.
string | $value |
getAttrib | ( | $key | ) |
Retrieve a single form attribute.
string | $key |
getAttribs | ( | ) |
Retrieve all form attributes/metadata.
getDecorator | ( | $name | ) |
Retrieve a registered decorator.
string | $name |
getDecorators | ( | ) |
Retrieve all decorators.
getDescription | ( | ) |
Get description.
getElement | ( | $name | ) |
Retrieve element.
string | $name |
getElements | ( | ) |
Retrieve elements.
getForm | ( | ) |
Get form object to which the group is attached.
getFullyQualifiedName | ( | ) |
Get fully qualified name.
Places name as subitem of array and/or appends brackets.
getId | ( | ) |
Get element id.
getLegend | ( | ) |
Retrieve group legend.
getName | ( | ) |
Retrieve group name.
getOrder | ( | ) |
Retrieve group order.
getPluginLoader | ( | ) |
Retrieve plugin loader.
getTranslator | ( | ) |
Retrieve translator object.
getView | ( | ) |
Retrieve view.
hasTranslator | ( | ) |
Does this display group have its own specific translator?
init | ( | ) |
Initialize object; used by extending classes.
key | ( | ) |
Current element.
loadDefaultDecorators | ( | ) |
Load default decorators.
loadDefaultDecoratorsIsDisabled | ( | ) |
Should we load the default decorators?
next | ( | ) |
Move pointer to next element.
removeAttrib | ( | $key | ) |
Remove attribute.
string | $key |
removeDecorator | ( | $name | ) |
Remove a single decorator.
string | $name |
removeElement | ( | $name | ) |
Remove a single element.
string | $name |
render | ( | Zend_View_Interface | $view = null | ) |
Render display group.
rewind | ( | ) |
Move pointer to beginning of element loop.
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 | ) |
setDescription | ( | $value | ) |
setDisableLoadDefaultDecorators | ( | $flag | ) |
setDisableTranslator | ( | $flag | ) |
Indicate whether or not translation should be disabled.
bool | $flag |
setElements | ( | array | $elements | ) |
setForm | ( | Zend_Form | $form | ) |
Set form object to which the display group is attached.
Zend_Form | $form |
setLegend | ( | $legend | ) |
setName | ( | $name | ) |
setOptions | ( | array | $options | ) |
setOrder | ( | $order | ) |
setPluginLoader | ( | Zend_Loader_PluginLoader | $loader | ) |
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 |