Methods
Magic overload: Proxy calls to the navigation container
__call(string $method, array $arguments) : mixed
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::__call() |
Parameters
$method
stringmethod name in container
$arguments
arrayrguments to pass
Exceptions
Returns
mixed
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\AbstractHelper::__toString() |
Returns
string
Determines whether a page should be accepted when iterating
accept(\Zend\Navigation\Page\AbstractPage $page, bool $recursive) : bool
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
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::accept() |
Parameters
$recursive
bool[optional] if true, page will not be accepted if it is the descendant of a page that is not accepted. Default is true
Returns
boolWhether page should be accepted
Finds the deepest active page in the given container
findActive(\Zend\Navigation\AbstractContainer $container, int | null $minDepth, int | null $maxDepth) : array
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::findActive() |
Parameters
$minDepth
intnull[optional] minimum depth required for page to be valid. Default is to use {@link getMinDepth()}. A null value means no minimum depth required.
$maxDepth
intnull[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
Get the tag closing bracket
getClosingBracket() : string
Inherited
| inherited_from |
\Zend\View\Helper\AbstractHtmlElement::getClosingBracket() |
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::getClosingBracket() |
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\AbstractHelper::getContainer() |
Returns
Returns indentation
getIndent() : string
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::getIndent() |
Returns
string
Returns whether last page in breadcrumbs should be hyperlinked
getLinkLast() : bool
Returns maximum depth a page can have to be included when rendering
getMaxDepth() : int | null
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::getMaxDepth() |
Returns
intnull
Returns minimum depth a page must have to be included when rendering
getMinDepth() : int | null
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::getMinDepth() |
Returns
intnull
Returns partial view script to use for rendering menu
getPartial() : string | array | null
Return renderInvisible flag
getRenderInvisible() : bool
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::getRenderInvisible() |
Returns
bool
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
Returns breadcrumb separator
getSeparator() : string
Returns
stringbreadcrumb separator
Return the translation text domain
getTranslatorTextDomain() : string
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::getTranslatorTextDomain() |
Returns
string
Returns whether ACL should be used
getUseAcl() : bool
Inherited
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() |
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::getView() |
Returns
Checks if the helper has an ACL instance
hasAcl() : bool
Inherited
Checks if the helper has a container
hasContainer() : bool
Inherited
Checks if the helper has an ACL role
hasRole() : bool
Inherited
Checks if the helper has a translator
hasTranslator() : bool
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::hasTranslator() |
Returns
bool
Returns an HTML string containing an 'a' element for the given page
htmlify(\Zend\Navigation\Page\AbstractPage $page) : string
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::htmlify() |
Parameters
Returns
stringHTML string (
Label)
Returns whether translator is enabled and should be used
isTranslatorEnabled() : bool
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::isTranslatorEnabled() |
Returns
bool
Renders the given $container by invoking the partial view helper
renderPartial(\Zend\Navigation\AbstractContainer $container, string | array $partial) : string
The container will simply be passed on as a model to the view script,
so in the script it will be available in
$this->container
.
Parameters
$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
Returns
stringhelper output
Renders breadcrumbs by chaining 'a' elements with the separator
registered in the helper
renderStraight(\Zend\Navigation\AbstractContainer $container) : string
Parameters
Returns
string
Sets default ACL to use if another ACL is not explicitly set
setDefaultAcl(\Zend\Permissions\Acl\AclInterface $acl) : void
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::setDefaultAcl() |
Parameters
Sets default ACL role(s) to use when iterating pages if not explicitly
set later with {@link setRole()}
setDefaultRole(mixed $role) : void
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::setDefaultRole() |
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
Set the event manager.
setEventManager(\Zend\EventManager\EventManagerInterface $events) : \Zend\View\Helper\Navigation\AbstractHelper
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::setEventManager() |
Parameters
Returns
Set the indentation string for using in {@link render()}, optionally a
number of spaces to indent with
setIndent(string | int $indent) : \Zend\View\Helper\Navigation\AbstractHelper
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::setIndent() |
Parameters
$indent
stringint
Returns
Sets whether last page in breadcrumbs should be hyperlinked
setLinkLast(bool $linkLast) : \Zend\View\Helper\Navigation\Breadcrumbs
Parameters
$linkLast
boolwhether last page should be hyperlinked
Returns
Sets the maximum depth a page can have to be included when rendering
setMaxDepth(int $maxDepth) : \Zend\View\Helper\Navigation\AbstractHelper
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::setMaxDepth() |
Parameters
$maxDepth
intDefault is null, which sets no maximum depth.
Returns
Sets the minimum depth a page must have to be included when rendering
setMinDepth(int $minDepth) : \Zend\View\Helper\Navigation\AbstractHelper
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::setMinDepth() |
Parameters
$minDepth
intDefault is null, which sets no minimum depth.
Returns
Sets which partial view script to use for rendering menu
setPartial(string | array $partial) : \Zend\View\Helper\Navigation\Breadcrumbs
Parameters
$partial
stringarraypartial 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
Render invisible items?
setRenderInvisible(bool $renderInvisible) : \Zend\View\Helper\Navigation\AbstractHelper
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::setRenderInvisible() |
Parameters
$renderInvisible
bool
Returns
Sets ACL role(s) to use when iterating pages
setRole(mixed $role) : \Zend\View\Helper\Navigation\AbstractHelper
Inherited
Implements HelperInterface::setRole().
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::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
Returns
Set the service locator.
setServiceLocator(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) : \Zend\View\Helper\Navigation\AbstractHelper
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::setServiceLocator() |
Parameters
Returns
Sets translator to use in helper
setTranslator(\Zend\I18n\Translator\TranslatorInterface $translator, string $textDomain) : \Zend\View\Helper\Navigation\AbstractHelper
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::setTranslator() |
Parameters
$textDomain
string[optional] text domain Default is null, which skips setTranslatorTextDomain
Returns
Sets whether translator is enabled and should be used
setTranslatorEnabled(bool $enabled) : \Zend\View\Helper\Navigation\AbstractHelper
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::setTranslatorEnabled() |
Parameters
$enabled
bool
Returns
Set translation text domain
setTranslatorTextDomain(string $textDomain) : \Zend\View\Helper\Navigation\AbstractHelper
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::setTranslatorTextDomain() |
Parameters
$textDomain
string
Returns
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() |
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::setView() |
Parameters
Returns
Retrieve whitespace representation of $indent
getWhitespace(int | string $indent) : string
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::getWhitespace() |
Parameters
$indent
intstring
Returns
string
Converts an associative array to a string of tag attributes.
htmlAttribs(array $attribs) : string
Inherited
Overloads View\Helper\AbstractHtmlElement::htmlAttribs().
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::htmlAttribs() |
Parameters
$attribs
arrayan array where each key-value pair is converted to an attribute name and value
Returns
string
Determines whether a page should be allowed given certain parameters
isAllowed(array $params) : bool
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::isAllowed() |
Parameters
$params
array
Returns
bool
Is doctype XHTML?
isXhtml() : bool
Inherited
| inherited_from |
\Zend\View\Helper\AbstractHtmlElement::isXhtml() |
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::isXhtml() |
Returns
bool
Normalize an ID
normalizeId(string $value) : string
Inherited
Verifies container and eventually fetches it from service locator if it is a string
parseContainer(\Zend\Navigation\AbstractContainer | string | null $container)
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::parseContainer() |
Parameters
Exceptions
Attaches default ACL listeners, if ACLs are in use
setDefaultListeners()
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::setDefaultListeners() |
Translate a message (for label, title, …)
translate(string $message, string $textDomain) : string
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::translate() |
Parameters
$message
stringID of the message to translate
$textDomain
stringText domain (category name for the translations)
Returns
stringTranslated message
Properties
The tag closing bracket
$closingBracket : string
Inherited
| inherited_from |
\Zend\View\Helper\AbstractHtmlElement::$$closingBracket |
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::$$closingBracket |
AbstractContainer to operate on by default
$container : \Zend\Navigation\AbstractContainer
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::$$container |
Default ACL to use when iterating pages if not explicitly set in the
instance by calling {@link setAcl()}
$defaultAcl : \Zend\Permissions\Acl\AclInterface
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::$$defaultAcl |
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
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::$$defaultRole |
Indentation string
$indent : string
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::$$indent |
Whether last page in breadcrumb should be hyperlinked
$linkLast : bool
The maximum depth a page can have to be included when rendering
$maxDepth : int
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::$$maxDepth |
The minimum depth a page must have to be included when rendering
$minDepth : int
Partial view script to use for rendering menu
$partial : string | array
Whether invisible items should be rendered by this helper
$renderInvisible : bool
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::$$renderInvisible |
Breadcrumbs separator string
$separator : string
Whether translator should be used
$translatorEnabled : bool
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::$$translatorEnabled |
Translator text domain (optional)
$translatorTextDomain : string
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::$$translatorTextDomain |
Whether ACL should be used for filtering out pages
$useAcl : bool
Inherited
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::$$useAcl |
View object instance
$view : \Zend\View\Renderer\RendererInterface
Inherited
| inherited_from |
\Zend\View\Helper\AbstractHelper::$$view |
| inherited_from |
\Zend\View\Helper\AbstractHtmlElement::$$view |
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::$$view |
Constants
EOL character
EOL
Inherited
| inherited_from |
\Zend\View\Helper\AbstractHtmlElement::EOL |
| inherited_from |
\Zend\View\Helper\Navigation\AbstractHelper::EOL |