Zend Framework
1.12
|
Public Member Functions | |
setId ($id) | |
Set element ID. | |
getId () | |
Retrieve element ID (used in 'for' attribute) | |
setTag ($tag) | |
Set HTML tag with which to surround label. | |
getTag () | |
Get HTML tag, if any, with which to surround label. | |
setTagClass ($tagClass) | |
Set the class to apply to the HTML tag with which to surround label. | |
getTagClass () | |
Get the class to apply to the HTML tag, if any, with which to surround label. | |
getClass () | |
Get class with which to define label. | |
__call ($method, $args) | |
Overloading. | |
getLabel () | |
Get label to render. | |
getPlacement () | |
Determine if label should append, prepend or implicit content. | |
render ($content) | |
Render a label. | |
![]() | |
__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. | |
Public Attributes | |
const | IMPLICIT = 'IMPLICIT' |
Placement constants. | |
const | IMPLICIT_PREPEND = 'IMPLICIT_PREPEND' |
const | IMPLICIT_APPEND = 'IMPLICIT_APPEND' |
![]() | |
const | APPEND = 'APPEND' |
Placement constants. | |
const | PREPEND = 'PREPEND' |
Protected Member Functions | |
_loadOptReqKey ($key) | |
Load an optional/required suffix/prefix key. | |
Protected Attributes | |
$_placement = 'PREPEND' | |
$_tag | |
$_tagClass | |
![]() | |
$_placement = 'APPEND' | |
$_element | |
$_options = array() | |
$_separator = PHP_EOL | |
__call | ( | $method, | |
$args | |||
) |
Overloading.
Currently overloads:
string | $method | |
array | $args |
Zend_Form_Exception | for unsupported methods |
|
protected |
Load an optional/required suffix/prefix key.
string | $key |
getClass | ( | ) |
Get class with which to define label.
Appends either 'optional' or 'required' to class, depending on whether or not the element is required.
getId | ( | ) |
Retrieve element ID (used in 'for' attribute)
If none set in decorator, looks first for element 'id' attribute, and defaults to element name.
getLabel | ( | ) |
Get label to render.
getPlacement | ( | ) |
Determine if label should append, prepend or implicit content.
getTag | ( | ) |
Get HTML tag, if any, with which to surround label.
getTagClass | ( | ) |
Get the class to apply to the HTML tag, if any, with which to surround label.
render | ( | $content | ) |
setId | ( | $id | ) |
setTag | ( | $tag | ) |
setTagClass | ( | $tagClass | ) |
Set the class to apply to the HTML tag with which to surround label.
string | $tagClass |
|
protected |
|
protected |
|
protected |
const IMPLICIT = 'IMPLICIT' |
Placement constants.
const IMPLICIT_APPEND = 'IMPLICIT_APPEND' |
const IMPLICIT_PREPEND = 'IMPLICIT_PREPEND' |