__call()
__toString()
accept()
findActive()
getAcl()
getClosingBracket()
getContainer()
getEventManager()
getIndent()
getMaxDepth()
getMinDepth()
getRenderInvisible()
getRole()
getServiceLocator()
getTranslator()
getTranslatorTextDomain()
getUseAcl()
getView()
hasAcl()
hasContainer()
hasRole()
hasTranslator()
htmlify()
isTranslatorEnabled()
render()
setAcl()
setContainer()
setDefaultAcl()
setDefaultRole()
setEventManager()
setIndent()
setMaxDepth()
setMinDepth()
setRenderInvisible()
setRole()
setServiceLocator()
setTranslator()
setTranslatorEnabled()
setTranslatorTextDomain()
setUseAcl()
setView()
getWhitespace()
htmlAttribs()
isAllowed()
isXhtml()
normalizeId()
parseContainer()
setDefaultListeners()
translate()
$acl
$closingBracket
$container
$defaultAcl
$defaultRole
$events
$indent
$maxDepth
$minDepth
$renderInvisible
$role
$serviceLocator
$translator
$translatorEnabled
$translatorTextDomain
$useAcl
$view
EOL
Base class for navigational helpers
__call(string $method, array $arguments) : mixed
string
method name in container
array
rguments to pass
\Zend\Navigation\Exception\ExceptionInterface |
---|
mixed
__toString() : string
This method will trigger an E_USER_ERROR if rendering the helper causes an exception to be thrown.
Implements HelperInterface::__toString().
string
accept(\Zend\Navigation\Page\AbstractPage $page, bool $recursive) : bool
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
bool
[optional] if true, page will not be accepted if it is the descendant of a page that is not accepted. Default is true
bool
Whether page should be acceptedfindActive(\Zend\Navigation\AbstractContainer $container, int | null $minDepth, int | null $maxDepth) : array
intnull
[optional] minimum depth required for page to be valid. Default is to use {@link getMinDepth()}. A null value means no minimum depth required.
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.
array
an associative array with the values 'depth' and 'page', or an empty array if not foundgetAcl() : \Zend\Permissions\Acl\AclInterface | null
Implements HelperInterface::getAcl().
\Zend\Permissions\Acl\AclInterface
null
ACL object or nullgetClosingBracket() : string
inherited_from | \Zend\View\Helper\AbstractHtmlElement::getClosingBracket() |
---|
string
getContainer() : \Zend\Navigation\AbstractContainer
Implements HelperInterface::getContainer().
If no container is set, a new container will be instantiated and stored in the helper.
\Zend\Navigation\AbstractContainer
navigation containergetEventManager() : \Zend\EventManager\EventManagerInterface
getIndent() : string
string
getMaxDepth() : int | null
int
null
getMinDepth() : int | null
int
null
getRenderInvisible() : bool
bool
getRole() : string | \Zend\Permissions\Acl\Role\RoleInterface | null
getServiceLocator() : \Zend\ServiceManager\ServiceLocatorInterface
getTranslator() : \Zend\I18n\Translator\TranslatorInterface | null
getTranslatorTextDomain() : string
string
getUseAcl() : bool
getView() : null | \Zend\View\Renderer\RendererInterface
inherited_from | \Zend\View\Helper\AbstractHelper::getView() |
---|---|
inherited_from | \Zend\View\Helper\AbstractHtmlElement::getView() |
hasAcl() : bool
hasContainer() : bool
hasRole() : bool
hasTranslator() : bool
bool
htmlify(\Zend\Navigation\Page\AbstractPage $page) : string
isTranslatorEnabled() : bool
bool
render(string | \Zend\Navigation\AbstractContainer $container) : string
inherited_from | \Zend\View\Helper\Navigation\HelperInterface::render() |
---|
string\Zend\Navigation\AbstractContainer
[optional] container to render. Default is null, which indicates that the helper should render the container returned by {@link getContainer()}.
\Zend\View\Exception\ExceptionInterface |
---|
string
helper outputsetAcl(\Zend\Permissions\Acl\AclInterface $acl) : \Zend\View\Helper\Navigation\AbstractHelper
setContainer(string | \Zend\Navigation\AbstractContainer $container) : \Zend\View\Helper\Navigation\AbstractHelper
Implements HelperInterface::setContainer().
string\Zend\Navigation\AbstractContainer
Default is null, meaning container will be reset.
setDefaultAcl(\Zend\Permissions\Acl\AclInterface $acl) : void
\Zend\Permissions\Acl\AclInterface
[optional] ACL object. Default is null, which sets no ACL object.
setDefaultRole(mixed $role) : void
mixed
[optional] role to set. Expects null, string, or an instance of {@link Acl\Role\RoleInterface}. Default is null, which sets no default role.
\Zend\View\Exception\InvalidArgumentException |
if role is invalid |
---|
setEventManager(\Zend\EventManager\EventManagerInterface $events) : \Zend\View\Helper\Navigation\AbstractHelper
setIndent(string | int $indent) : \Zend\View\Helper\Navigation\AbstractHelper
setMaxDepth(int $maxDepth) : \Zend\View\Helper\Navigation\AbstractHelper
int
Default is null, which sets no maximum depth.
setMinDepth(int $minDepth) : \Zend\View\Helper\Navigation\AbstractHelper
int
Default is null, which sets no minimum depth.
setRenderInvisible(bool $renderInvisible) : \Zend\View\Helper\Navigation\AbstractHelper
setRole(mixed $role) : \Zend\View\Helper\Navigation\AbstractHelper
Implements HelperInterface::setRole().
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.
\Zend\View\Exception\InvalidArgumentException |
---|
setServiceLocator(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) : \Zend\View\Helper\Navigation\AbstractHelper
setTranslator(\Zend\I18n\Translator\TranslatorInterface $translator, string $textDomain) : \Zend\View\Helper\Navigation\AbstractHelper
\Zend\I18n\Translator\TranslatorInterface
[optional] translator. Default is null, which sets no translator.
string
[optional] text domain Default is null, which skips setTranslatorTextDomain
setTranslatorEnabled(bool $enabled) : \Zend\View\Helper\Navigation\AbstractHelper
setTranslatorTextDomain(string $textDomain) : \Zend\View\Helper\Navigation\AbstractHelper
setUseAcl(bool $useAcl) : \Zend\View\Helper\Navigation\AbstractHelper
setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
inherited_from | \Zend\View\Helper\AbstractHelper::setView() |
---|---|
inherited_from | \Zend\View\Helper\AbstractHtmlElement::setView() |
getWhitespace(int | string $indent) : string
intstring
string
htmlAttribs(array $attribs) : string
Overloads View\Helper\AbstractHtmlElement::htmlAttribs().
array
an array where each key-value pair is converted to an attribute name and value
string
isAllowed(array $params) : bool
array
bool
isXhtml() : bool
inherited_from | \Zend\View\Helper\AbstractHtmlElement::isXhtml() |
---|
bool
normalizeId(string $value) : string
parseContainer(\Zend\Navigation\AbstractContainer | string | null $container)
\Zend\Navigation\AbstractContainerstringnull
\Zend\View\Exception\InvalidArgumentException |
---|
setDefaultListeners()
translate(string $message, string $textDomain) : string
string
ID of the message to translate
string
Text domain (category name for the translations)
string
Translated message$closingBracket : string
inherited_from | \Zend\View\Helper\AbstractHtmlElement::$$closingBracket |
---|
$defaultAcl : \Zend\Permissions\Acl\AclInterface
$defaultRole : string | \Zend\Permissions\Acl\Role\RoleInterface
$indent : string
$maxDepth : int
$minDepth : int
$renderInvisible : bool
$translatorEnabled : bool
$translatorTextDomain : string
$useAcl : bool
$view : \Zend\View\Renderer\RendererInterface
inherited_from | \Zend\View\Helper\AbstractHelper::$$view |
---|---|
inherited_from | \Zend\View\Helper\AbstractHtmlElement::$$view |
EOL
inherited_from | \Zend\View\Helper\AbstractHtmlElement::EOL |
---|