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_Decorator_Element_HtmlTag
Wraps content in an HTML block tag.
Options accepted are: - tag: tag to use in decorator - noAttribs: do not render attributes in the opening tag - placement: 'append' or 'prepend'. If 'append', renders opening and closing tag after content; if prepend, renders opening and closing tag before content. - openOnly: render opening tag only - closeOnly: render closing tag only
Any other options passed are processed as HTML attributes of the tag.

string
$_placement= 'null'
Placement; default to surround content
null
Details
_getCloseTag(
string $tag
)
:
string
Get formatted closing tag
Name | Type | Description |
---|---|---|
$tag | string |
Type | Description |
---|---|
string |

_getEncoding(
)
:
string
Get encoding for use with htmlspecialchars()
Type | Description |
---|---|
string |

_getOpenTag(
string $tag, array $attribs
=
null
)
:
string
Get the formatted open tag
Name | Type | Description |
---|---|---|
$tag | string | |
$attribs | array |
Type | Description |
---|---|
string |

_htmlAttribs(
$attribs
)
:
string
Convert options to tag attributes
Name | Type | Description |
---|---|---|
$attribs |
Type | Description |
---|---|
string |

getTag(
)
:
string
Get tag
If no tag is registered, either via setTag() or as an option, uses 'div'.
Type | Description |
---|---|
string |

normalizeTag(
string $tag
)
:
string
Normalize tag
Ensures tag is alphanumeric characters only, and all lowercase.
Name | Type | Description |
---|---|---|
$tag | string |
Type | Description |
---|---|
string |

render(
string $content
)
:
string
Render content wrapped in an HTML tag
Name | Type | Description |
---|---|---|
$content | string |
Type | Description |
---|---|
string |