Zend Framework
1.12
|
Public Member Functions | |
setCallback ($callback) | |
Set callback. | |
getCallback () | |
Get registered callback. | |
render ($content) | |
Render. | |
![]() | |
__construct ($options=null) | |
Constructor. | |
setOptions (array $options) | |
Set options. | |
setConfig (Zend_Config $config) | |
Set options from config object. | |
setOption ($key, $value) | |
Set option. | |
getOption ($key) | |
Get option. | |
getOptions () | |
Retrieve options. | |
removeOption ($key) | |
Remove single option. | |
clearOptions () | |
Clear all options. | |
setElement ($element) | |
Set current form element. | |
getElement () | |
Retrieve current element. | |
getPlacement () | |
Determine if decorator should append or prepend content. | |
getSeparator () | |
Retrieve separator to use between old and new content. | |
render ($content) | |
Decorate content and/or element. | |
Protected Attributes | |
$_callback | |
![]() | |
$_placement = 'APPEND' | |
$_element | |
$_options = array() | |
$_separator = PHP_EOL | |
Additional Inherited Members | |
![]() | |
const | APPEND = 'APPEND' |
Placement constants. | |
const | PREPEND = 'PREPEND' |
getCallback | ( | ) |
Get registered callback.
If not previously registered, checks to see if it exists in registered options.
render | ( | $content | ) |
Render.
If no callback registered, returns callback. Otherwise, gets return value of callback and either appends, prepends, or replaces passed in content.
string | $content |
Implements Zend_Form_Decorator_Interface.
setCallback | ( | $callback | ) |
Set callback.
callback | $callback |
Zend_Form_Exception |
|
protected |