Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Base class for navigational helpers
Zend_Acl $_acl = ''ACL to use when iterating pages
DetailsZend_Navigation_Container $_container = ''Container to operate on by default
DetailsZend_Acl $_defaultAcl = ''Default ACL to use when iterating pages if not explicitly set in the instance by calling {@link setAcl()}
Detailsstring|Zend_Acl_Role_Interface $_defaultRole = ''Default ACL role to use when iterating pages if not explicitly set in the instance by calling {@link setRole()}
Detailsstring $_indent = ''Indentation string
Detailsint $_maxDepth = ''The maximum depth a page can have to be included when rendering
Detailsint $_minDepth = ''The minimum depth a page must have to be included when rendering
Detailsbool $_renderInvisible = 'false'Wheter invisible items should be rendered by this helper
Detailsstring|Zend_Acl_Role_Interface $_role = ''ACL role to use when iterating pages
DetailsZend_Translate_Adapter $_translator = ''Translator
Detailsbool $_useAcl = 'true'Whether ACL should be used for filtering out pages
Detailsbool $_useTranslator = 'true'Whether translator should be used for page labels and titles
Details__call(
string $method, array $arguments
=
array
)
:
mixedMagic overload: Proxy calls to the navigation container
Details__toString(
)
:
stringMagic overload: Proxy to {@link render()}.
This method will trigger an E_USER_ERROR if rendering the helper causes an exception to be thrown.
Implements {@link Zend_View_Helper_Navigation_Helper::__toString()}.
Details_acceptAcl(
Zend_Navigation_Page $page
)
:
boolDetermines whether a page should be accepted by ACL when iterating
Rules: - If helper has no ACL, page is accepted - If page has a resource or privilege defined, page is accepted if the ACL allows access to it using the helper's role - If page has no resource or privilege, page is accepted
Details_getWhitespace(
int|string $indent
)
:
stringRetrieve whitespace representation of $indent
Details_htmlAttribs(
array $attribs
)
:
stringConverts an associative array to a string of tag attributes.
Overloads {@link Zend_View_Helper_HtmlElement::_htmlAttribs()}.
Details_normalizeId(
string $value
)
:
stringNormalize an ID
Overrides {@link Zend_View_Helper_HtmlElement::_normalizeId()}.
Detailsaccept(
Zend_Navigation_Page $page, bool $recursive
=
true
)
:
boolDetermines whether a page should be accepted when iterating
Rules: - If a page is not visible it is not accepted, unless RenderInvisible has been set to true. - If helper has no ACL, page is accepted - If helper has ACL, but no role, page is not accepted - If helper has ACL and role: - Page is accepted if it has no resource or privilege - Page is accepted if ACL allows page's resource or privilege - If page is accepted by the rules above and $recursive is true, the page will not be accepted if it is the descendant of a non-accepted page.
DetailsfindActive(
Zend_Navigation_Container $container, int|null|int|null $minDepth
=
null, $maxDepth
=
1
)
:
arrayFinds the deepest active page in the given container
DetailsgetAcl(
)
:
Zend_Acl|nullReturns ACL or null if it isn't set using {@link setAcl()} or {@link setDefaultAcl()}
Implements {@link Zend_View_Helper_Navigation_Helper::getAcl()}.
DetailsgetContainer(
)
:
Zend_Navigation_ContainerReturns the navigation container helper operates on by default
Implements {@link Zend_View_Helper_Navigation_Interface::getContainer()}.
If a helper is not explicitly set in this helper instance by calling {@link setContainer()} or by passing it through the helper entry point, this method will look in {@link Zend_Registry} for a container by using the key 'Zend_Navigation'.
If no container is set, and nothing is found in Zend_Registry, a new container will be instantiated and stored in the helper.
DetailsgetIndent(
)
:
stringReturns indentation
DetailsgetMaxDepth(
)
:
int|nullReturns maximum depth a page can have to be included when rendering
DetailsgetMinDepth(
)
:
int|nullReturns minimum depth a page must have to be included when rendering
DetailsgetRenderInvisible(
)
:
boolReturn renderInvisible flag
DetailsgetRole(
)
:
string|Zend_Acl_Role_Interface|nullReturns ACL role to use when iterating pages, or null if it isn't set using {@link setRole()} or {@link setDefaultRole()}
Implements {@link Zend_View_Helper_Navigation_Helper::getRole()}.
DetailsgetTranslator(
)
:
Zend_Translate_Adapter|nullReturns translator used in helper
Implements {@link Zend_View_Helper_Navigation_Helper::getTranslator()}.
DetailsgetUseAcl(
)
:
boolReturns whether ACL should be used
Implements {@link Zend_View_Helper_Navigation_Helper::getUseAcl()}.
DetailsgetUseTranslator(
)
:
boolReturns whether translator should be used
Implements {@link Zend_View_Helper_Navigation_Helper::getUseTranslator()}.
DetailshasAcl(
)
:
boolChecks if the helper has an ACL instance
Implements {@link Zend_View_Helper_Navigation_Helper::hasAcl()}.
DetailshasContainer(
)
:
boolChecks if the helper has a container
Implements {@link Zend_View_Helper_Navigation_Helper::hasContainer()}.
DetailshasRole(
)
:
boolChecks if the helper has an ACL role
Implements {@link Zend_View_Helper_Navigation_Helper::hasRole()}.
DetailshasTranslator(
)
:
boolChecks if the helper has a translator
Implements {@link Zend_View_Helper_Navigation_Helper::hasTranslator()}.
Detailshtmlify(
Zend_Navigation_Page $page
)
:
stringReturns an HTML string containing an 'a' element for the given page
DetailssetAcl(
Zend_Acl $acl
=
null
)
:
Zend_View_Helper_Navigation_HelperAbstractSets ACL to use when iterating pages
Implements {@link Zend_View_Helper_Navigation_Helper::setAcl()}.
DetailssetContainer(
Zend_Navigation_Container $container
=
null
)
:
Zend_View_Helper_Navigation_HelperAbstractSets navigation container the helper operates on by default
Implements {@link Zend_View_Helper_Navigation_Interface::setContainer()}.
DetailssetDefaultAcl(
Zend_Acl $acl
=
null
)
:
voidSets default ACL to use if another ACL is not explicitly set
DetailssetDefaultRole(
midex $role
=
null
)
:
voidSets default ACL role(s) to use when iterating pages if not explicitly set later with {@link setRole()}
DetailssetIndent(
string|int $indent
)
:
Zend_View_Helper_Navigation_HelperAbstractSet the indentation string for using in {@link render()}, optionally a number of spaces to indent with
DetailssetMaxDepth(
int $maxDepth
=
null
)
:
Zend_View_Helper_Navigation_HelperAbstractSets the maximum depth a page can have to be included when rendering
DetailssetMinDepth(
int $minDepth
=
null
)
:
Zend_View_Helper_Navigation_HelperAbstractSets the minimum depth a page must have to be included when rendering
DetailssetRenderInvisible(
bool $renderInvisible
=
true
)
:
Zend_View_Helper_Navigation_HelperAbstractRender invisible items?
DetailssetRole(
mixed $role
=
null
)
:
Zend_View_Helper_Navigation_HelperAbstractSets ACL role(s) to use when iterating pages
Implements {@link Zend_View_Helper_Navigation_Helper::setRole()}.
DetailssetTranslator(
mixed $translator
=
null
)
:
Zend_View_Helper_Navigation_HelperAbstractSets translator to use in helper
Implements {@link Zend_View_Helper_Navigation_Helper::setTranslator()}.
DetailssetUseAcl(
bool $useAcl
=
true
)
:
Zend_View_Helper_Navigation_HelperAbstractSets whether ACL should be used
Implements {@link Zend_View_Helper_Navigation_Helper::setUseAcl()}.
DetailssetUseTranslator(
bool $useTranslator
=
true
)
:
Zend_View_Helper_Navigation_HelperAbstractSets whether translator should be used
Implements {@link Zend_View_Helper_Navigation_Helper::setUseTranslator()}.
Details