Zend Framework  1.12
Public Member Functions | List of all members
Zend_Dojo_Form_DisplayGroup Class Reference

Public Member Functions

 __construct ($name, Zend_Loader_PluginLoader $loader, $options=null)
 Constructor.
 
 setView (Zend_View_Interface $view=null)
 Set the view object.
 
- Public Member Functions inherited from Zend_Form_DisplayGroup
 __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.
 

Additional Inherited Members

- Protected Member Functions inherited from Zend_Form_DisplayGroup
 _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 inherited from Zend_Form_DisplayGroup
 $_attribs = array()
 
 $_decorators = array()
 
 $_description
 
 $_disableLoadDefaultDecorators = false
 
 $_elementOrder = array()
 
 $_elements = array()
 
 $_form
 
 $_groupUpdated = false
 
 $_loader
 
 $_name
 
 $_order
 
 $_translator
 
 $_translatorDisabled = false
 
 $_view
 

Constructor & Destructor Documentation

__construct (   $name,
Zend_Loader_PluginLoader  $loader,
  $options = null 
)

Constructor.

Parameters
string$name
Zend_Loader_PluginLoader$loader
array | Zend_Config | null$options
Returns
void

Member Function Documentation

setView ( Zend_View_Interface  $view = null)

Set the view object.

Ensures that the view object has the dojo view helper path set.

Parameters
Zend_View_Interface$view
Returns
Zend_Dojo_Form_Element_Dijit