Class HtmlTag

Summary

Fully Qualified Name: Zend\View\Helper\HtmlTag
Extends: AbstractHtmlElement

Description

Renders tag (both opening and closing) of a web page, to which some custom attributes can be added dynamically.

Methods

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

Method Details

__invoke()

Retrieve object instance; optionally add attributes.

Parameter Name Type Description
$attribs array

Returns: self

closeTag()

Render closing tag.

Returns: string

getAttributes()

Returns: array

getClosingBracket()

Get the tag closing bracket

Returns: string

getUseNamespaces()

Returns: bool

getView()

Get the view object

Returns: null|\Renderer

openTag()

Render opening tag.

Returns: string

setAttribute()

Set new attribute.

Parameter Name Type Description
$attrName string
$attrValue string

Returns: self

setAttributes()

Add new or overwrite the existing attributes.

Parameter Name Type Description
$attribs array

Returns: self

setUseNamespaces()

Parameter Name Type Description
$useNamespaces bool

Returns: self

setView()

Set the View object

Parameter Name Type Description
$view \Renderer

Returns: \AbstractHelper

Top