Fully Qualified Name: | Zend\View\Helper\HtmlTag |
Extends: | AbstractHtmlElement |
Renders tag (both opening and closing) of a web page, to which some custom attributes can be added dynamically.
Name | Description | Defined By |
---|---|---|
__invoke() | Retrieve object instance; optionally add attributes. | HtmlTag |
closeTag() | Render closing tag. | HtmlTag |
getAttributes() | HtmlTag | |
getClosingBracket() | Get the tag closing bracket | AbstractHtmlElement |
getUseNamespaces() | HtmlTag | |
getView() | Get the view object | AbstractHelper |
openTag() | Render opening tag. | HtmlTag |
setAttribute() | Set new attribute. | HtmlTag |
setAttributes() | Add new or overwrite the existing attributes. | HtmlTag |
setUseNamespaces() | HtmlTag | |
setView() | Set the View object | AbstractHelper |
Retrieve object instance; optionally add attributes.
Parameter Name | Type | Description |
---|---|---|
$attribs | array |
Returns: self
Render closing tag.
Returns: string
Returns: array
Get the tag closing bracket
Returns: string
Returns: bool
Get the view object
Returns: null|\Renderer
Render opening tag.
Returns: string
Set new attribute.
Parameter Name | Type | Description |
---|---|---|
$attrName | string | |
$attrValue | string |
Returns: self
Add new or overwrite the existing attributes.
Parameter Name | Type | Description |
---|---|---|
$attribs | array |
Returns: self
Parameter Name | Type | Description |
---|---|---|
$useNamespaces | bool |
Returns: self
Set the View object
Parameter Name | Type | Description |
---|---|---|
$view | \Renderer |
Returns: \AbstractHelper