Renders tag (both opening and closing) of a web page, to which some custom
attributes can be added dynamically.
Methods
Retrieve object instance; optionally add attributes.
__invoke(array $attribs) : \Zend\View\Helper\self
Parameters
$attribs
array
Returns
\Zend\View\Helper\self
Render closing tag.
closeTag() : string
getAttributes()
getAttributes() : array
Get the tag closing bracket
getClosingBracket() : string
Inherited
inherited_from |
\Zend\View\Helper\AbstractHtmlElement::getClosingBracket() |
Returns
string
getUseNamespaces()
getUseNamespaces() : bool
Get the view object
getView() : null | \Zend\View\Renderer\RendererInterface
Inherited
inherited_from |
\Zend\View\Helper\AbstractHelper::getView() |
inherited_from |
\Zend\View\Helper\AbstractHtmlElement::getView() |
Returns
Render opening tag.
openTag() : string
Set new attribute.
setAttribute(string $attrName, string $attrValue) : \Zend\View\Helper\self
Parameters
$attrName
string
$attrValue
string
Returns
\Zend\View\Helper\self
Add new or overwrite the existing attributes.
setAttributes(array $attribs) : \Zend\View\Helper\self
Parameters
$attribs
array
Returns
\Zend\View\Helper\self
setUseNamespaces()
setUseNamespaces(bool $useNamespaces) : \Zend\View\Helper\self
Parameters
$useNamespaces
bool
Returns
\Zend\View\Helper\self
Set the View object
setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
Inherited
inherited_from |
\Zend\View\Helper\AbstractHelper::setView() |
inherited_from |
\Zend\View\Helper\AbstractHtmlElement::setView() |
Parameters
Returns
handleNamespaceAttributes()
handleNamespaceAttributes()
Converts an associative array to a string of tag attributes.
htmlAttribs(array $attribs) : string
Inherited
access |
public |
inherited_from |
\Zend\View\Helper\AbstractHtmlElement::htmlAttribs() |
Parameters
$attribs
array
From this array, each key-value pair is converted to an attribute name and value.
Returns
string
The XHTML for the attributes.
Is doctype XHTML?
isXhtml() : bool
Inherited
inherited_from |
\Zend\View\Helper\AbstractHtmlElement::isXhtml() |
Returns
bool
Normalize an ID
normalizeId(string $value) : string
Inherited
inherited_from |
\Zend\View\Helper\AbstractHtmlElement::normalizeId() |
Parameters
$value
string
Returns
string
Properties
Attributes for the <html> tag.
$attributes : array
The tag closing bracket
$closingBracket : string
Inherited
inherited_from |
\Zend\View\Helper\AbstractHtmlElement::$$closingBracket |
Whether to pre-set appropriate attributes in accordance
with the currently set DOCTYPE.
$useNamespaces : bool
View object instance
$view : \Zend\View\Renderer\RendererInterface
Inherited
inherited_from |
\Zend\View\Helper\AbstractHelper::$$view |
inherited_from |
\Zend\View\Helper\AbstractHtmlElement::$$view |
$handledNamespaces
$handledNamespaces : bool
Constants
EOL character
EOL
Inherited
inherited_from |
\Zend\View\Helper\AbstractHtmlElement::EOL |