Helper for rendering menus from navigation containers

package Default
inherited_from \Zend\View\Helper\Navigation\AbstractHelper

 Methods

Magic overload: Proxy calls to the navigation container

__call(string $method, array $arguments = array()) : mixed
Inherited

Parameters

$method

string

method name in container

$arguments

array

rguments to pass

Exceptions

\Zend\Navigation\Exception\ExceptionInterface

Returns

mixed

View helper entry point: Retrieves helper and optionally sets container to operate on

__invoke(\Zend\Navigation\AbstractContainer $container = null) : \Zend\View\Helper\Navigation\Menu
fluent This method is part of a fluent interface and will return the same instance

Parameters

$container

\Zend\Navigation\AbstractContainer

[optional] container to operate on

Returns

\Zend\View\Helper\Navigation\Menu

Magic overload: Proxy to {@link render()}.

__toString() : string
Inherited

This method will trigger an E_USER_ERROR if rendering the helper causes an exception to be thrown.

Implements \HelperInterface::__toString().

inherited_from \Zend\View\Helper\Navigation\HelperInterface::__toString()

Returns

string

Determines whether a page should be accepted when iterating

accept(\Zend\Navigation\Page\AbstractPage $page, boolean $recursive = true) : boolean
Inherited

Default listener may be 'overridden' by attaching listener to 'isAllowed' method. Listener must be 'short circuited' if overriding default ACL listener.

Rules:

  • If a page is not visible it is not accepted, unless RenderInvisible has been set to true
  • If $useAcl is true (default is true):
    • Page is accepted if listener returns true, otherwise false
  • If page is accepted and $recursive is true, the page will not be accepted if it is the descendant of a non-accepted page

Parameters

$page

\Zend\Navigation\Page\AbstractPage

page to check

$recursive

boolean

[optional] if true, page will not be accepted if it is the descendant of a page that is not accepted. Default is true

Returns

booleanWhether page should be accepted

Sets a flag indicating whether labels should be escaped

escapeLabels(boolean $flag = true) : \Zend\View\Helper\Navigation\Menu
fluent This method is part of a fluent interface and will return the same instance

Parameters

$flag

boolean

[optional] escape labels

Returns

\Zend\View\Helper\Navigation\Menu

Finds the deepest active page in the given container

findActive(\Zend\Navigation\AbstractContainer $container, integer|null $minDepth = null, integer|null $maxDepth = -1) : array
Inherited

Parameters

$container

\Zend\Navigation\AbstractContainer

container to search

$minDepth

integernull

[optional] minimum depth required for page to be valid. Default is to use {@link getMinDepth()}. A null value means no minimum depth required.

$maxDepth

integernull

[optional] maximum depth a page can have to be valid. Default is to use {@link getMaxDepth()}. A null value means no maximum depth required.

Returns

arrayan associative array with the values 'depth' and 'page', or an empty array if not found

Returns ACL or null if it isn't set using {@link setAcl()} or {@link setDefaultAcl()}

getAcl() : \Zend\Permissions\Acl\AclInterface | null
Inherited

Implements \HelperInterface::getAcl().

inherited_from \Zend\View\Helper\Navigation\HelperInterface::getAcl()

Returns

\Zend\Permissions\Acl\AclInterfacenullACL object or null

Returns flag indicating whether page class should be applied to <li> element

getAddClassToListItem() : boolean

By default, this value is false.

Returns

booleanwhether parents should be rendered

Get the tag closing bracket

getClosingBracket() : string
Inherited

Returns

string

Returns the navigation container helper operates on by default

getContainer() : \Zend\Navigation\AbstractContainer
Inherited

Implements \HelperInterface::getContainer().

If no container is set, a new container will be instantiated and stored in the helper.

inherited_from \Zend\View\Helper\Navigation\HelperInterface::getContainer()

Returns

\Zend\Navigation\AbstractContainernavigation container

Get the event manager.

getEventManager() : \Zend\EventManager\EventManagerInterface
Inherited

Returns

\Zend\EventManager\EventManagerInterface

Returns indentation

getIndent() : string
Inherited

Returns

string

Returns CSS class to use for the active 'li' element when rendering

getLiActiveClass() : string

Returns

string

Returns maximum depth a page can have to be included when rendering

getMaxDepth() : integer | null
Inherited

Returns

integernull

Returns minimum depth a page must have to be included when rendering

getMinDepth() : integer | null
Inherited

Returns

integernull

Returns a flag indicating whether only active branch should be rendered

getOnlyActiveBranch() : boolean

By default, this value is false, meaning the entire menu will be be rendered.

Returns

boolean

Returns partial view script to use for rendering menu

getPartial() : string | array | null

Returns

stringarraynull

Return renderInvisible flag

getRenderInvisible() : boolean
Inherited
inherited_from \Zend\View\Helper\Navigation\HelperInterface::getRenderInvisible()

Returns

boolean

Returns flag indicating whether parents should be rendered when rendering only the active branch

getRenderParents() : boolean

By default, this value is true.

Returns

boolean

Returns ACL role to use when iterating pages, or null if it isn't set using {@link setRole()} or {@link setDefaultRole()}

getRole() : string | \Zend\Permissions\Acl\Role\RoleInterface | null
Inherited

Implements \HelperInterface::getRole().

inherited_from \Zend\View\Helper\Navigation\HelperInterface::getRole()

Returns

string\Zend\Permissions\Acl\Role\RoleInterfacenull

Get the service locator.

getServiceLocator() : \Zend\ServiceManager\ServiceLocatorInterface
Inherited
inherited_from \Zend\ServiceManager\ServiceLocatorAwareInterface::getServiceLocator()

Returns

\Zend\ServiceManager\ServiceLocatorInterface

Returns translator used in helper

getTranslator() : \Zend\I18n\Translator\TranslatorInterface | null
Inherited
inherited_from \Zend\I18n\Translator\TranslatorAwareInterface::getTranslator()

Returns

\Zend\I18n\Translator\TranslatorInterfacenull

Return the translation text domain

getTranslatorTextDomain() : string
Inherited
inherited_from \Zend\I18n\Translator\TranslatorAwareInterface::getTranslatorTextDomain()

Returns

string

Returns CSS class to use for the first 'ul' element when rendering

getUlClass() : string

Returns

string

Returns whether ACL should be used

getUseAcl() : boolean
Inherited

Implements \HelperInterface::getUseAcl().

inherited_from \Zend\View\Helper\Navigation\HelperInterface::getUseAcl()

Returns

boolean

Get the view object

getView() : null | \Zend\View\Renderer\RendererInterface
Inherited
inherited_from \Zend\View\Helper\HelperInterface::getView()

Returns

null\Zend\View\Renderer\RendererInterface

Checks if the helper has an ACL instance

hasAcl() : boolean
Inherited

Implements \HelperInterface::hasAcl().

inherited_from \Zend\View\Helper\Navigation\HelperInterface::hasAcl()

Returns

boolean

Checks if the helper has a container

hasContainer() : boolean
Inherited

Implements \HelperInterface::hasContainer().

inherited_from \Zend\View\Helper\Navigation\HelperInterface::hasContainer()

Returns

boolean

Checks if the helper has an ACL role

hasRole() : boolean
Inherited

Implements \HelperInterface::hasRole().

inherited_from \Zend\View\Helper\Navigation\HelperInterface::hasRole()

Returns

boolean

Checks if the helper has a translator

hasTranslator() : boolean
Inherited
inherited_from \Zend\I18n\Translator\TranslatorAwareInterface::hasTranslator()

Returns

boolean

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

htmlify(\Zend\Navigation\Page\AbstractPage $page, boolean $escapeLabel = true, boolean $addClassToListItem = false) : string

Overrides \AbstractHelper::htmlify().

inherited_from \Zend\View\Helper\Navigation\AbstractHelper::htmlify()

Parameters

$page

\Zend\Navigation\Page\AbstractPage

page to generate HTML for

$escapeLabel

boolean

Whether or not to escape the label

$addClassToListItem

boolean

Whether or not to add the page class to the list item

Returns

string

Returns an HTML string containing an 'a' element for the given page

htmlify(\Zend\Navigation\Page\AbstractPage $page) : string
Inherited

Parameters

$page

\Zend\Navigation\Page\AbstractPage

page to generate HTML for

Returns

stringHTML string (Label)

Returns whether translator is enabled and should be used

isTranslatorEnabled() : boolean
Inherited
inherited_from \Zend\I18n\Translator\TranslatorAwareInterface::isTranslatorEnabled()

Returns

boolean

Renders menu

render(\Zend\Navigation\AbstractContainer $container = null) : string

Implements \HelperInterface::render().

If a partial view is registered in the helper, the menu will be rendered using the given partial script. If no partial is registered, the menu will be rendered as an 'ul' element by the helper's internal method.

see
see

Parameters

$container

\Zend\Navigation\AbstractContainer

[optional] container to render. Default is to render the container registered in the helper.

Returns

string

Renders helper

renderMenu(\Zend\Navigation\AbstractContainer $container = null, array $options = array()) : string

Renders a HTML 'ul' for the given $container. If $container is not given, the container registered in the helper will be used.

Available $options:

Parameters

$container

\Zend\Navigation\AbstractContainer

[optional] container to create menu from. Default is to use the container retrieved from {@link getContainer()}.

$options

array

[optional] options for controlling rendering

Returns

string

Renders the given $container by invoking the partial view helper

renderPartial(\Zend\Navigation\AbstractContainer $container = null, string|array $partial = null) : string

The container will simply be passed on as a model to the view script as-is, and will be available in the partial script as 'container', e.g. echo 'Number of pages: ', count($this->container);.

Parameters

$container

\Zend\Navigation\AbstractContainer

[optional] container to pass to view script. Default is to use the container registered in the helper.

$partial

stringarray

[optional] partial view script to use. Default is to use the partial registered in the helper. If an array is given, it is expected to contain two values; the partial view script to use, and the module where the script can be found.

Exceptions

\Zend\View\Exception\RuntimeException if no partial provided
\Zend\View\Exception\InvalidArgumentException if partial is invalid array

Returns

string

Renders the inner-most sub menu for the active page in the $container

renderSubMenu(\Zend\Navigation\AbstractContainer $container = null, string $ulClass = null, string|integer $indent = null, string $liActiveClass = null) : string

This is a convenience method which is equivalent to the following call: renderMenu($container, array( 'indent' => $indent, 'ulClass' => $ulClass, 'minDepth' => null, 'maxDepth' => null, 'onlyActiveBranch' => true, 'renderParents' => false, 'liActiveClass' => $liActiveClass ));

Parameters

$container

\Zend\Navigation\AbstractContainer

[optional] container to render. Default is to render the container registered in the helper.

$ulClass

string

[optional] CSS class to use for UL element. Default is to use the value from {@link getUlClass()}.

$indent

stringinteger

[optional] indentation as a string or number of spaces. Default is to use the value retrieved from {@link getIndent()}.

$liActiveClass

string

[optional] CSS class to use for UL element. Default is to use the value from {@link getUlClass()}.

Returns

string

Sets ACL to use when iterating pages

setAcl(\Zend\Permissions\Acl\AclInterface $acl = null) : \Zend\View\Helper\Navigation\AbstractHelper
Inherited

Implements \HelperInterface::setAcl().

inherited_from \Zend\View\Helper\Navigation\HelperInterface::setAcl()

Parameters

$acl

\Zend\Permissions\Acl\AclInterface

ACL object.

Returns

\Zend\View\Helper\Navigation\AbstractHelper

Enables/disables page class applied to <li> element

setAddClassToListItem(boolean $flag = true) : \Zend\View\Helper\Navigation\Menu
fluent This method is part of a fluent interface and will return the same instance

Parameters

$flag

boolean

[optional] page class applied to

  • element Default is true.

  • Returns

    \Zend\View\Helper\Navigation\Menufluent interface, returns self

    Sets navigation container the helper operates on by default

    setContainer(string|\Zend\Navigation\AbstractContainer $container = null) : \Zend\View\Helper\Navigation\AbstractHelper
    Inherited

    Implements \HelperInterface::setContainer().

    inherited_from \Zend\View\Helper\Navigation\HelperInterface::setContainer()

    Parameters

    $container

    string\Zend\Navigation\AbstractContainer

    Default is null, meaning container will be reset.

    Returns

    \Zend\View\Helper\Navigation\AbstractHelper

    Sets default ACL to use if another ACL is not explicitly set

    setDefaultAcl(\Zend\Permissions\Acl\AclInterface $acl = null) : void
    InheritedStatic

    Parameters

    $acl

    \Zend\Permissions\Acl\AclInterface

    [optional] ACL object. Default is null, which sets no ACL object.

    Sets default ACL role(s) to use when iterating pages if not explicitly set later with {@link setRole()}

    setDefaultRole(mixed $role = null) : void
    InheritedStatic

    Parameters

    $role

    mixed

    [optional] role to set. Expects null, string, or an instance of {@link Acl\Role\RoleInterface}. Default is null, which sets no default role.

    Exceptions

    \Zend\View\Exception\InvalidArgumentException if role is invalid

    Set the event manager.

    setEventManager(\Zend\EventManager\EventManagerInterface $events) : \Zend\View\Helper\Navigation\AbstractHelper
    Inherited
    inherited_from \Zend\EventManager\EventManagerAwareInterface::setEventManager()

    Parameters

    $events

    \Zend\EventManager\EventManagerInterface

    Returns

    \Zend\View\Helper\Navigation\AbstractHelper

    Set the indentation string for using in {@link render()}, optionally a number of spaces to indent with

    setIndent(string|integer $indent) : \Zend\View\Helper\Navigation\AbstractHelper
    Inherited

    Parameters

    $indent

    stringinteger

    Returns

    \Zend\View\Helper\Navigation\AbstractHelper

    Sets CSS class to use for the active 'li' element when rendering

    setLiActiveClass(string $liActiveClass) : \Zend\View\Helper\Navigation\Menu
    fluent This method is part of a fluent interface and will return the same instance

    Parameters

    $liActiveClass

    string

    CSS class to set

    Returns

    \Zend\View\Helper\Navigation\Menu

    Sets the maximum depth a page can have to be included when rendering

    setMaxDepth(integer $maxDepth = null) : \Zend\View\Helper\Navigation\AbstractHelper
    Inherited

    Parameters

    $maxDepth

    integer

    Default is null, which sets no maximum depth.

    Returns

    \Zend\View\Helper\Navigation\AbstractHelper

    Sets the minimum depth a page must have to be included when rendering

    setMinDepth(integer $minDepth = null) : \Zend\View\Helper\Navigation\AbstractHelper
    Inherited

    Parameters

    $minDepth

    integer

    Default is null, which sets no minimum depth.

    Returns

    \Zend\View\Helper\Navigation\AbstractHelper

    Sets a flag indicating whether only active branch should be rendered

    setOnlyActiveBranch(boolean $flag = true) : \Zend\View\Helper\Navigation\Menu
    fluent This method is part of a fluent interface and will return the same instance

    Parameters

    $flag

    boolean

    [optional] render only active branch.

    Returns

    \Zend\View\Helper\Navigation\Menu

    Sets which partial view script to use for rendering menu

    setPartial(string|array $partial) : \Zend\View\Helper\Navigation\Menu
    fluent This method is part of a fluent interface and will return the same instance

    Parameters

    $partial

    stringarray

    partial view script or null. If an array is given, it is expected to contain two values; the partial view script to use, and the module where the script can be found.

    Returns

    \Zend\View\Helper\Navigation\Menu

    Render invisible items?

    setRenderInvisible(boolean $renderInvisible = true) : \Zend\View\Helper\Navigation\AbstractHelper
    Inherited
    inherited_from \Zend\View\Helper\Navigation\HelperInterface::setRenderInvisible()

    Parameters

    $renderInvisible

    boolean

    Returns

    \Zend\View\Helper\Navigation\AbstractHelper

    Enables/disables rendering of parents when only rendering active branch

    setRenderParents(boolean $flag = true) : \Zend\View\Helper\Navigation\Menu

    See \setOnlyActiveBranch() for more information.

    fluent This method is part of a fluent interface and will return the same instance

    Parameters

    $flag

    boolean

    [optional] render parents when rendering active branch.

    Returns

    \Zend\View\Helper\Navigation\Menu

    Sets ACL role(s) to use when iterating pages

    setRole(mixed $role = null) : \Zend\View\Helper\Navigation\AbstractHelper
    Inherited

    Implements \HelperInterface::setRole().

    inherited_from \Zend\View\Helper\Navigation\HelperInterface::setRole()

    Parameters

    $role

    mixed

    [optional] role to set. Expects a string, an instance of type {@link Acl\Role\RoleInterface}, or null. Default is null, which will set no role.

    Exceptions

    \Zend\View\Exception\InvalidArgumentException

    Returns

    \Zend\View\Helper\Navigation\AbstractHelper

    Set the service locator.

    setServiceLocator(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) : \Zend\View\Helper\Navigation\AbstractHelper
    Inherited
    inherited_from \Zend\ServiceManager\ServiceLocatorAwareInterface::setServiceLocator()

    Parameters

    $serviceLocator

    \Zend\ServiceManager\ServiceLocatorInterface

    Returns

    \Zend\View\Helper\Navigation\AbstractHelper

    Sets translator to use in helper

    setTranslator(\Zend\I18n\Translator\TranslatorInterface $translator = null, string $textDomain = null) : \Zend\View\Helper\Navigation\AbstractHelper
    Inherited
    inherited_from \Zend\I18n\Translator\TranslatorAwareInterface::setTranslator()

    Parameters

    $translator

    \Zend\I18n\Translator\TranslatorInterface

    [optional] translator. Default is null, which sets no translator.

    $textDomain

    string

    [optional] text domain Default is null, which skips setTranslatorTextDomain

    Returns

    \Zend\View\Helper\Navigation\AbstractHelper

    Sets whether translator is enabled and should be used

    setTranslatorEnabled(boolean $enabled = true) : \Zend\View\Helper\Navigation\AbstractHelper
    Inherited
    inherited_from \Zend\I18n\Translator\TranslatorAwareInterface::setTranslatorEnabled()

    Parameters

    $enabled

    boolean

    Returns

    \Zend\View\Helper\Navigation\AbstractHelper

    Set translation text domain

    setTranslatorTextDomain(string $textDomain = 'default') : \Zend\View\Helper\Navigation\AbstractHelper
    Inherited
    inherited_from \Zend\I18n\Translator\TranslatorAwareInterface::setTranslatorTextDomain()

    Parameters

    $textDomain

    string

    Returns

    \Zend\View\Helper\Navigation\AbstractHelper

    Sets CSS class to use for the first 'ul' element when rendering

    setUlClass(string $ulClass) : \Zend\View\Helper\Navigation\Menu
    fluent This method is part of a fluent interface and will return the same instance

    Parameters

    $ulClass

    string

    CSS class to set

    Returns

    \Zend\View\Helper\Navigation\Menu

    Sets whether ACL should be used

    setUseAcl(boolean $useAcl = true) : \Zend\View\Helper\Navigation\AbstractHelper
    Inherited

    Implements \HelperInterface::setUseAcl().

    inherited_from \Zend\View\Helper\Navigation\HelperInterface::setUseAcl()

    Parameters

    $useAcl

    boolean

    Returns

    \Zend\View\Helper\Navigation\AbstractHelper

    Set the View object

    setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
    Inherited
    inherited_from \Zend\View\Helper\HelperInterface::setView()

    Parameters

    $view

    \Zend\View\Renderer\RendererInterface

    Returns

    \Zend\View\Helper\AbstractHelper

    Retrieve whitespace representation of $indent

    getWhitespace(integer|string $indent) : string
    Inherited

    Parameters

    $indent

    integerstring

    Returns

    string

    Converts an associative array to a string of tag attributes.

    htmlAttribs(array $attribs) : string
    Inherited
    access public

    Parameters

    $attribs

    array

    From this array, each key-value pair is converted to an attribute name and value.

    Returns

    stringThe XHTML for the attributes.

    Determines whether a page should be allowed given certain parameters

    isAllowed(array $params) : boolean
    Inherited

    Parameters

    $params

    array

    Returns

    boolean

    Is doctype XHTML?

    isXhtml() : boolean
    Inherited

    Returns

    boolean

    Normalize an ID

    normalizeId(string $value) : string
    Inherited

    Parameters

    $value

    string

    Returns

    string

    Normalizes given render options

    normalizeOptions(array $options = array()) : array

    Parameters

    $options

    array

    [optional] options to normalize

    Returns

    array

    Verifies container and eventually fetches it from service locator if it is a string

    parseContainer(\Zend\Navigation\AbstractContainer|string|null $container = null
    Inherited

    Parameters

    $container

    \Zend\Navigation\AbstractContainerstringnull

    Exceptions

    \Zend\View\Exception\InvalidArgumentException

    Renders the deepest active menu within [$minDepth, $maxDepth], (called from {@link renderMenu()})

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

    Parameters

    $container

    \Zend\Navigation\AbstractContainer

    container to render

    $ulClass

    string

    CSS class for first UL

    $indent

    string

    initial indentation

    $minDepth

    integernull

    minimum depth

    $maxDepth

    integernull

    maximum depth

    $escapeLabels

    boolean

    Whether or not to escape the labels

    $addClassToListItem

    boolean

    Whether or not page class applied to

  • element

  • $liActiveClass

    string

    CSS class for active LI

    Returns

    string

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

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

    Parameters

    $container

    \Zend\Navigation\AbstractContainer

    container to render

    $ulClass

    string

    CSS class for first UL

    $indent

    string

    initial indentation

    $minDepth

    integernull

    minimum depth

    $maxDepth

    integernull

    maximum depth

    $onlyActive

    boolean

    render only active branch?

    $escapeLabels

    boolean

    Whether or not to escape the labels

    $addClassToListItem

    boolean

    Whether or not page class applied to

  • element

  • $liActiveClass

    string

    CSS class for active LI

    Returns

    string

    Attaches default ACL listeners, if ACLs are in use

    setDefaultListeners() 
    Inherited

    Translate a message (for label, title, …)

    translate(string $message, string $textDomain = null) : string
    Inherited

    Parameters

    $message

    string

    ID of the message to translate

    $textDomain

    string

    Text domain (category name for the translations)

    Returns

    stringTranslated message

     Properties

     

    ACL to use when iterating pages

    $acl : \Zend\Permissions\Acl\AclInterface

    Default

     

    Whether page class should be applied to <li> element

    $addClassToListItem : boolean

    Default

    false
     

    The tag closing bracket

    $closingBracket : string

    Default

    null
     

    AbstractContainer to operate on by default

    $container : \Zend\Navigation\AbstractContainer

    Default

     

    Default ACL to use when iterating pages if not explicitly set in the instance by calling {@link setAcl()}

    $defaultAcl : \Zend\Permissions\Acl\AclInterface

    Default

    Static
     

    Default ACL role to use when iterating pages if not explicitly set in the instance by calling {@link setRole()}

    $defaultRole : string | \Zend\Permissions\Acl\Role\RoleInterface

    Default

    Static
     

    Whether labels should be escaped

    $escapeLabels : boolean

    Default

    true
     

    $events

    $events : \Zend\EventManager\EventManagerInterface

    Default

     

    Indentation string

    $indent : string

    Default

    ''
     

    CSS class to use for the active li element

    $liActiveClass : string

    Default

    'active'
     

    The maximum depth a page can have to be included when rendering

    $maxDepth : integer

    Default

     

    The minimum depth a page must have to be included when rendering

    $minDepth : integer

    Default

     

    Whether only active branch should be rendered

    $onlyActiveBranch : boolean

    Default

    false
     

    Partial view script to use for rendering menu

    $partial : string | array

    Default

    null
     

    Whether invisible items should be rendered by this helper

    $renderInvisible : boolean

    Default

    false
     

    Whether parents should be rendered when only rendering active branch

    $renderParents : boolean

    Default

    true
     

    ACL role to use when iterating pages

    $role : string | \Zend\Permissions\Acl\Role\RoleInterface

    Default

     

    $serviceLocator

    $serviceLocator : \Zend\ServiceManager\ServiceLocatorInterface

    Default

     

    Translator (optional)

    $translator : \Zend\I18n\Translator\TranslatorInterface

    Default

     

    Whether translator should be used

    $translatorEnabled : boolean

    Default

    true
     

    Translator text domain (optional)

    $translatorTextDomain : string

    Default

    'default'
     

    CSS class to use for the ul element

    $ulClass : string

    Default

    'navigation'
     

    Whether ACL should be used for filtering out pages

    $useAcl : boolean

    Default

    true
     

    View object instance

    $view : \Zend\View\Renderer\RendererInterface

    Default

    null

     Constants

     

    EOL character

    EOL = PHP_EOL 
    deprecated just use PHP_EOL