Abstract Class Zend_Form_Decorator_Abstract

Description

Implements interfaces:

Zend_Form_Decorator_Abstract

Located in /Form/Decorator/Abstract.php (line 34)


	
			
Direct descendents
Class Description
Abstract class Zend_Dojo_Form_Decorator_DijitContainer Zend_Dojo_Form_Decorator_DijitContainer
 class Zend_Form_Decorator_Callback Zend_Form_Decorator_Callback
 class Zend_Form_Decorator_FormErrors Zend_Form_Decorator_FormErrors
 class Zend_Form_Decorator_ViewScript Zend_Form_Decorator_ViewScript
 class Zend_Form_Decorator_Fieldset Zend_Form_Decorator_Fieldset
 class Zend_Form_Decorator_DtDdWrapper Zend_Form_Decorator_DtDdWrapper
 class Zend_Form_Decorator_Form Zend_Form_Decorator_Form
 class Zend_Form_Decorator_Captcha Captcha generic decorator
 class Zend_Form_Decorator_Tooltip Zend_Form_Decorator_Tooltip
 class Zend_Form_Decorator_Captcha_Word Word-based captcha decorator
 class Zend_Form_Decorator_ViewHelper Zend_Form_Decorator_ViewHelper
 class Zend_Form_Decorator_Errors Zend_Form_Decorator_Errors
 class Zend_Form_Decorator_File Zend_Form_Decorator_File
 class Zend_Form_Decorator_Label Zend_Form_Decorator_Label
 class Zend_Form_Decorator_Image Zend_Form_Decorator_Image
 class Zend_Form_Decorator_FormElements Zend_Form_Decorator_FormElements
 class Zend_Form_Decorator_HtmlTag Zend_Form_Decorator_Element_HtmlTag
 class Zend_Form_Decorator_Description Zend_Form_Decorator_Description
Class Constant Summary
 APPEND = 'APPEND'
 PREPEND = 'PREPEND'
Variable Summary
Method Summary
 void __construct ([array|Zend_Config $options = null])
 mixed getOption (string $key)
 array getOptions ()
 string getPlacement ()
 string getSeparator ()
 void removeOption (mixed $key)
 string render (string $content)
 Zend_Form_Decorator_Abstract setOption (string $key, mixed $value)
Variables
Zend_Form_Element|Zend_Form $_element (line 51)
  • access: protected
array $_options = array() (line 57)

Decorator options

  • access: protected
string $_placement = 'APPEND' (line 46)

Default placement: append

  • access: protected

Redefined in descendants as:
string $_separator = PHP_EOL (line 63)

Separator between new content and old

  • access: protected
Methods
Constructor __construct (line 71)

Constructor

  • access: public
void __construct ([array|Zend_Config $options = null])

Implementation of:
Zend_Form_Decorator_Interface::__construct()
Constructor
clearOptions (line 163)

Clear all options

  • access: public

Implementation of:
Zend_Form_Decorator_Interface::clearOptions()
Clear all options
getElement (line 195)

Retrieve current element

  • access: public

Implementation of:
Zend_Form_Decorator_Interface::getElement()
Retrieve current element
getOption (line 122)

Get option

  • access: public
mixed getOption (string $key)
  • string $key

Implementation of:
Zend_Form_Decorator_Interface::getOption()
Retrieve a single option
getOptions (line 137)

Retrieve options

  • access: public
array getOptions ()

Implementation of:
Zend_Form_Decorator_Interface::getOptions()
Retrieve decorator options

Redefined in descendants as:
getPlacement (line 205)

Determine if decorator should append or prepend content

  • access: public
string getPlacement ()
getSeparator (line 232)

Retrieve separator to use between old and new content

  • access: public
string getSeparator ()
removeOption (line 148)

Remove single option

  • access: public
void removeOption (mixed $key)
  • mixed $key

Implementation of:
Zend_Form_Decorator_Interface::removeOption()
Delete a single option
render (line 249)

Decorate content and/or element

  • throws: Zend_Dorm_Decorator_Exception when unimplemented
  • access: public
string render (string $content)
  • string $content

Implementation of:
Zend_Form_Decorator_Interface::render()
Render the element

Redefined in descendants as:
setConfig (line 98)

Set options from config object

  • access: public
Zend_Form_Decorator_Abstract setConfig ( $config)

Implementation of:
Zend_Form_Decorator_Interface::setConfig()
Set decorator options from a config object
setElement (line 176)

Set current form element

  • throws: Zend_Form_Decorator_Exception on invalid element type
  • access: public

Implementation of:
Zend_Form_Decorator_Interface::setElement()
Set an element to decorate
setOption (line 110)

Set option

  • access: public
Zend_Form_Decorator_Abstract setOption (string $key, mixed $value)
  • string $key
  • mixed $value

Implementation of:
Zend_Form_Decorator_Interface::setOption()
Set a single option
setOptions (line 86)

Set options

  • access: public
Zend_Form_Decorator_Abstract setOptions ( $options)
  • array $options

Implementation of:
Zend_Form_Decorator_Interface::setOptions()
Set decorator options from an array
Class Constants
APPEND = 'APPEND' (line 39)

Placement constants

PREPEND = 'PREPEND' (line 40)

Documentation generated on Thu, 01 Apr 2010 12:53:04 -0400 by phpDocumentor 1.4.3