API Documentation

Form/DisplayGroup.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Form
Classes
Zend_Form_DisplayGroup

Description

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

Implements
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Form
version
$Id: DisplayGroup.php 22465 2010-06-19 17:41:03Z alab $
Properties
$_attribs
$_decorators
$_description
$_disableLoadDefaultDecorators
$_elementOrder
$_elements
$_groupUpdated
$_loader
$_name
$_order
$_translator
$_translatorDisabled
$_view
Methods
__construct
init
setOptions
setConfig
setAttrib
addAttribs
setAttribs
getAttrib
getAttribs
removeAttrib
clearAttribs
filterName
setName
getName
getFullyQualifiedName
getId
setLegend
getLegend
setDescription
getDescription
setOrder
getOrder
addElement
addElements
setElements
getElement
getElements
removeElement
clearElements
setPluginLoader
getPluginLoader
addPrefixPath
addPrefixPaths
setDisableLoadDefaultDecorators
loadDefaultDecoratorsIsDisabled
loadDefaultDecorators
_getDecorator
addDecorator
addDecorators
setDecorators
getDecorator
getDecorators
removeDecorator
clearDecorators
setView
getView
render
__toString
setTranslator
getTranslator
setDisableTranslator
translatorIsDisabled
__call
current
key
next
rewind
valid
count
_sort
_loadDecorator

Description

Zend_Form_DisplayGroup

Properties

$_attribs

array $_attribs = 'array'

Group attributes

Details

$_attribs
array
visibility
protected
default
array
final
false
static
false

$_decorators

array $_decorators = 'array'

Display group decorators

Details

$_decorators
array
visibility
protected
default
array
final
false
static
false

$_description

string $_description = ''

Description

Details

$_description
string
visibility
protected
default
final
false
static
false

$_disableLoadDefaultDecorators

bool $_disableLoadDefaultDecorators = 'false'

Should we disable loading the default decorators?

Details

$_disableLoadDefaultDecorators
bool
visibility
protected
default
false
final
false
static
false

$_elementOrder

array $_elementOrder = 'array'

Element order

Details

$_elementOrder
array
visibility
protected
default
array
final
false
static
false

$_elements

array $_elements = 'array'

Elements

Details

$_elements
array
visibility
protected
default
array
final
false
static
false

$_groupUpdated

bool $_groupUpdated = 'false'

Whether or not a new element has been added to the group

Details

$_groupUpdated
bool
visibility
protected
default
false
final
false
static
false

$_loader

Zend_Loader_PluginLoader $_loader = ''

Plugin loader for decorators

Details

$_loader
Zend_Loader_PluginLoader
visibility
protected
default
final
false
static
false

$_name

string $_name = ''

Group name

Details

$_name
string
visibility
protected
default
final
false
static
false

$_order

int $_order = ''

Group order

Details

$_order
int
visibility
protected
default
final
false
static
false

$_translator

Zend_Translate $_translator = ''

Details

$_translator
Zend_Translate
visibility
protected
default
final
false
static
false

$_translatorDisabled

bool $_translatorDisabled = 'false'

Is translation disabled?

Details

$_translatorDisabled
bool
visibility
protected
default
false
final
false
static
false

$_view

Zend_View_Interface $_view = ''

Details

$_view
Zend_View_Interface
visibility
protected
default
final
false
static
false

Methods

__call

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

Overloading: allow rendering specific decorators

Call renderDecoratorName() to render a specific decorator.

Arguments
$method
string
$args
array
Output
string
Details
visibility
public
final
false
static
false
throws
for invalid decorator or invalid method call

__construct

__construct( string $name, Zend_Loader_PluginLoader $loader, array|Zend_Config $options = null ) : void

Constructor

Arguments
$name
string
$loader
Zend_Loader_PluginLoader
$options
arrayZend_Config
Details
visibility
public
final
false
static
false

__toString

__toString( ) : string

String representation of group

Output
string
Details
visibility
public
final
false
static
false

_getDecorator

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

Instantiate a decorator based on class name or class name fragment

Arguments
$name
string
$options
nullarray
Details
visibility
protected
final
false
static
false

_loadDecorator

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

Lazy-load a decorator

Arguments
$decorator
array
Decorator type and options
$name
mixed
Decorator name or alias
Details
visibility
protected
final
false
static
false

_sort

_sort( ) : void

Sort items according to their order

Details
visibility
protected
final
false
static
false

addAttribs

addAttribs( array $attribs ) : Zend_Form_DisplayGroup

Add multiple form attributes at once

Arguments
$attribs
array
Details
visibility
public
final
false
static
false

addDecorator

addDecorator( string|Zend_Form_Decorator_Interface $decorator, array|Zend_Config $options = null ) : Zend_Form_DisplayGroup

Add a decorator for rendering the group

Arguments
$decorator
stringZend_Form_Decorator_Interface
$options
arrayZend_Config
Options with which to initialize decorator
Details
visibility
public
final
false
static
false

addDecorators

addDecorators( array $decorators ) : Zend_Form_DisplayGroup

Add many decorators at once

Arguments
$decorators
array
Details
visibility
public
final
false
static
false

addElement

addElement( Zend_Form_Element $element ) : Zend_Form_DisplayGroup

Add element to stack

Arguments
$element
Zend_Form_Element
Details
visibility
public
final
false
static
false

addElements

addElements( array $elements ) : Zend_Form_DisplayGroup

Add multiple elements at once

Arguments
$elements
array
Details
visibility
public
final
false
static
false
throws
if any element is not a Zend_Form_Element

addPrefixPath

addPrefixPath( string $prefix, string $path ) : Zend_Form_DisplayGroup

Add a prefix path for the plugin loader

Arguments
$prefix
string
$path
string
Details
visibility
public
final
false
static
false

addPrefixPaths

addPrefixPaths( array $spec ) : Zend_Form_DisplayGroup

Add several prefix paths at once

Arguments
$spec
array
Details
visibility
public
final
false
static
false

clearAttribs

clearAttribs( ) : Zend_Form

Clear all form attributes

Output
Zend_Form
Details
visibility
public
final
false
static
false

clearDecorators

clearDecorators( ) : Zend_Form_DisplayGroup

Clear all decorators

Details
visibility
public
final
false
static
false

clearElements

clearElements( ) : Zend_Form_DisplayGroup

Remove all elements

Details
visibility
public
final
false
static
false

count

count( ) : int

Count of elements/subforms that are iterable

Output
int
Details
visibility
public
final
false
static
false

current

current( ) : Zend_Form_Element

Current element

Details
visibility
public
final
false
static
false

filterName

filterName( string $value ) : string

Filter a name to only allow valid variable characters

Arguments
$value
string
Output
string
Details
visibility
public
final
false
static
false

getAttrib

getAttrib( string $key ) : mixed

Retrieve a single form attribute

Arguments
$key
string
Output
mixed
Details
visibility
public
final
false
static
false

getAttribs

getAttribs( ) : array

Retrieve all form attributes/metadata

Output
array
Details
visibility
public
final
false
static
false

getDecorator

getDecorator( string $name ) : false|Zend_Form_Decorator_Abstract

Retrieve a registered decorator

Arguments
$name
string
Details
visibility
public
final
false
static
false

getDecorators

getDecorators( ) : array

Retrieve all decorators

Output
array
Details
visibility
public
final
false
static
false

getDescription

getDescription( ) : string

Get description

Output
string
Details
visibility
public
final
false
static
false

getElement

getElement( string $name ) : Zend_Form_Element|null

Retrieve element

Arguments
$name
string
Output
Zend_Form_Element|null
Details
visibility
public
final
false
static
false

getElements

getElements( ) : array

Retrieve elements

Output
array
Details
visibility
public
final
false
static
false

getFullyQualifiedName

getFullyQualifiedName( ) : string

Get fully qualified name

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

Output
string
Details
visibility
public
final
false
static
false

getId

getId( ) : string

Get element id

Output
string
Details
visibility
public
final
false
static
false

getLegend

getLegend( ) : string

Retrieve group legend

Output
string
Details
visibility
public
final
false
static
false

getName

getName( ) : string

Retrieve group name

Output
string
Details
visibility
public
final
false
static
false

getOrder

getOrder( ) : int

Retrieve group order

Output
int
Details
visibility
public
final
false
static
false

getPluginLoader

getPluginLoader( ) : Zend_Loader_PluginLoader

Retrieve plugin loader

Details
visibility
public
final
false
static
false

getTranslator

getTranslator( ) : Zend_Translate_Adapter|null

Retrieve translator object

Details
visibility
public
final
false
static
false

getView

getView( ) : Zend_View_Interface

Retrieve view

Details
visibility
public
final
false
static
false

init

init( ) : void

Initialize object; used by extending classes

Details
visibility
public
final
false
static
false

key

key( ) : string

Current element

Output
string
Details
visibility
public
final
false
static
false

loadDefaultDecorators

loadDefaultDecorators( ) : void

Load default decorators

Details
visibility
public
final
false
static
false

loadDefaultDecoratorsIsDisabled

loadDefaultDecoratorsIsDisabled( ) : bool

Should we load the default decorators?

Output
bool
Details
visibility
public
final
false
static
false

next

next( ) : void

Move pointer to next element

Details
visibility
public
final
false
static
false

removeAttrib

removeAttrib( string $key ) : bool

Remove attribute

Arguments
$key
string
Output
bool
Details
visibility
public
final
false
static
false

removeDecorator

removeDecorator( string $name ) : bool

Remove a single decorator

Arguments
$name
string
Output
bool
Details
visibility
public
final
false
static
false

removeElement

removeElement( string $name ) : boolean

Remove a single element

Arguments
$name
string
Output
boolean
Details
visibility
public
final
false
static
false

render

render(  $view = null ) : string

Render display group

Arguments
$view
Output
string
Details
visibility
public
final
false
static
false

rewind

rewind( ) : void

Move pointer to beginning of element loop

Details
visibility
public
final
false
static
false

setAttrib

setAttrib( string $key, mixed $value ) : Zend_Form_DisplayGroup

Set group attribute

Arguments
$key
string
$value
mixed
Details
visibility
public
final
false
static
false

setAttribs

setAttribs( array $attribs ) : Zend_Form_DisplayGroup

Set multiple form attributes at once

Overwrites any previously set attributes.

Arguments
$attribs
array
Details
visibility
public
final
false
static
false

setConfig

setConfig( Zend_Config $config ) : Zend_Form_DisplayGroup

Set options from config object

Arguments
$config
Zend_Config
Details
visibility
public
final
false
static
false

setDecorators

setDecorators( array $decorators ) : Zend_Form_DisplayGroup

Overwrite all decorators

Arguments
$decorators
array
Details
visibility
public
final
false
static
false

setDescription

setDescription( string $value ) : Zend_Form_DisplayGroup

Set description

Arguments
$value
string
Details
visibility
public
final
false
static
false

setDisableLoadDefaultDecorators

setDisableLoadDefaultDecorators( bool $flag ) : Zend_Form_Element

Set flag to disable loading default decorators

Arguments
$flag
bool
Details
visibility
public
final
false
static
false

setDisableTranslator

setDisableTranslator( bool $flag ) : Zend_Form_DisplayGroup

Indicate whether or not translation should be disabled

Arguments
$flag
bool
Details
visibility
public
final
false
static
false

setElements

setElements( array $elements ) : Zend_Form_DisplayGroup

Set multiple elements at once (overwrites)

Arguments
$elements
array
Details
visibility
public
final
false
static
false

setLegend

setLegend( string $legend ) : Zend_Form_DisplayGroup

Set group legend

Arguments
$legend
string
Details
visibility
public
final
false
static
false

setName

setName( string $name ) : Zend_Form_DisplayGroup

Set group name

Arguments
$name
string
Details
visibility
public
final
false
static
false

setOptions

setOptions( array $options ) : Zend_Form_DisplayGroup

Set options

Arguments
$options
array
Details
visibility
public
final
false
static
false

setOrder

setOrder( int $order ) : Zend_Form_Element

Set group order

Arguments
$order
int
Details
visibility
public
final
false
static
false

setPluginLoader

setPluginLoader( Zend_Loader_PluginLoader $loader ) : Zend_Form_DisplayGroup

Set plugin loader

Arguments
$loader
Zend_Loader_PluginLoader
Details
visibility
public
final
false
static
false

setTranslator

setTranslator( Zend_Translate|Zend_Translate_Adapter|null $translator = null ) : Zend_Form_DisplayGroup

Set translator object

Arguments
$translator
Zend_TranslateZend_Translate_Adapternull
Details
visibility
public
final
false
static
false

setView

setView( Zend_View_Interface $view = null ) : Zend_Form_DisplayGroup

Set view

Arguments
$view
Zend_View_Interface
Details
visibility
public
final
false
static
false

translatorIsDisabled

translatorIsDisabled( ) : bool

Is translation disabled?

Output
bool
Details
visibility
public
final
false
static
false

valid

valid( ) : bool

Determine if current element/subform/display group is valid

Output
bool
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.