Zend Framework  1.12
Public Member Functions | List of all members
Zend_Form_Decorator_Interface Interface Reference

Public Member Functions

 __construct ($options=null)
 Constructor.
 
 setElement ($element)
 Set an element to decorate.
 
 getElement ()
 Retrieve current element.
 
 setOptions (array $options)
 Set decorator options from an array.
 
 setConfig (Zend_Config $config)
 Set decorator options from a config object.
 
 setOption ($key, $value)
 Set a single option.
 
 getOption ($key)
 Retrieve a single option.
 
 getOptions ()
 Retrieve decorator options.
 
 removeOption ($key)
 Delete a single option.
 
 clearOptions ()
 Clear all options.
 
 render ($content)
 Render the element.
 

Constructor & Destructor Documentation

__construct (   $options = null)

Constructor.

Accept options during initialization.

Parameters
array | Zend_Config$options
Returns
void

Implemented in Zend_Form_Decorator_Abstract.

Member Function Documentation

clearOptions ( )

Clear all options.

Returns
Zend_Form_Decorator_Interface

Implemented in Zend_Form_Decorator_Abstract.

getElement ( )

Retrieve current element.

Returns
mixed

Implemented in Zend_Form_Decorator_Abstract.

getOption (   $key)

Retrieve a single option.

Parameters
string$key
Returns
mixed

Implemented in Zend_Form_Decorator_Abstract.

getOptions ( )

Retrieve decorator options.

Returns
array

Implemented in Zend_Form_Decorator_Abstract, Zend_Form_Decorator_Form, and Zend_Form_Decorator_Fieldset.

removeOption (   $key)

Delete a single option.

Parameters
string$key
Returns
bool

Implemented in Zend_Form_Decorator_Abstract.

render (   $content)
setConfig ( Zend_Config  $config)

Set decorator options from a config object.

Parameters
Zend_Config$config
Returns
Zend_Form_Decorator_Interface

Implemented in Zend_Form_Decorator_Abstract.

setElement (   $element)

Set an element to decorate.

While the name is "setElement", a form decorator could decorate either an element or a form object.

Parameters
mixed$element
Returns
Zend_Form_Decorator_Interface

Implemented in Zend_Form_Decorator_Abstract.

setOption (   $key,
  $value 
)

Set a single option.

Parameters
string$key
mixed$value
Returns
Zend_Form_Decorator_Interface

Implemented in Zend_Form_Decorator_Abstract.

setOptions ( array  $options)

Set decorator options from an array.

Parameters
array$options
Returns
Zend_Form_Decorator_Interface

Implemented in Zend_Form_Decorator_Abstract.