\Application\View\Helper\NavigationMenu

Class Menu render an HTML menu for the application updated to conform to the specific requirements of present application

Summary

Methods
Properties
Constants
htmlify()
No public properties found
No constants found
renderNormalMenu()
getPresentUserEmailAddress()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

htmlify()

htmlify(\Zend\Navigation\Page\AbstractPage  $page, \Application\View\Helper\Navigation\type  $escapeLabel = true, \Application\View\Helper\Navigation\type  $addClassToListItem = false) : string

Returns an HTML string containing an 'a' element for the given page if the page's href is not empty, and a 'span' element if it is empty.

Parameters

\Zend\Navigation\Page\AbstractPage $page
\Application\View\Helper\Navigation\type $escapeLabel
\Application\View\Helper\Navigation\type $addClassToListItem

Returns

string

renderNormalMenu()

renderNormalMenu(\Zend\Navigation\AbstractContainer  $container, string  $ulClass, string  $indent, integer|null  $minDepth, integer|null  $maxDepth, boolean  $onlyActive, boolean  $escapeLabels, boolean  $addClassToListItem, string  $liActiveClass) : string

Renders a normal menu (called from {@link renderMenu()}).

Parameters

\Zend\Navigation\AbstractContainer $container

container to render

string $ulClass

CSS class for first UL

string $indent

initial indentation

integer|null $minDepth

minimum depth

integer|null $maxDepth

maximum depth

boolean $onlyActive

render only active branch?

boolean $escapeLabels

Whether or not to escape the labels

boolean $addClassToListItem

Whether or not page class applied to

  • element

  • string $liActiveClass

    CSS class for active LI

    Returns

    string

    getPresentUserEmailAddress()

    getPresentUserEmailAddress() : string

    Get logged in user's e-mail address

    Returns

    string