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.
Proxy helper for retrieving navigational helpers and forwarding calls
string NS = 'Zend_View_Helper_Navigation'
View helper namespace
Detailsstring $_defaultProxy = 'menu'Default proxy to use in {@link render()}
Detailsarray $_helpers = 'array'Contains references to proxied helpers
Detailsbool $_injectAcl = 'true'Whether ACL should be injected when proxying
Detailsbool $_injectContainer = 'true'Whether container should be injected when proxying
Detailsbool $_injectTranslator = 'true'Whether translator should be injected when proxying
Details__call(
string $method, array $arguments
=
array
)
:
mixedMagic overload: Proxy to other navigation helpers or the container
Examples of usage from a view script or layout:
// proxy to Menu helper and render container:
echo $this->navigation()->menu();
// proxy to Breadcrumbs helper and set indentation: $this->navigation()->breadcrumbs()->setIndent(8);
// proxy to container and find all pages with 'blog' route: $blogPages = $this->navigation()->findAllByRoute('blog');
Details_inject(
Zend_View_Helper_Navigation_Helper $helper
)
:
voidInjects container, ACL, and translator to the given $helper if this helper is configured to do so
DetailsfindHelper(
string $proxy, bool $strict
=
true
)
:
Zend_View_Helper_Navigation_HelperReturns the helper matching $proxy
The helper must implement the interface {@link Zend_View_Helper_Navigation_Helper}.
DetailsgetDefaultProxy(
)
:
stringReturns the default proxy to use in {@link render()}
DetailsgetInjectAcl(
)
:
boolReturns whether ACL should be injected when proxying
DetailsgetInjectContainer(
)
:
boolReturns whether container should be injected when proxying
DetailsgetInjectTranslator(
)
:
boolReturns whether translator should be injected when proxying
Detailsnavigation(
Zend_Navigation_Container $container
=
null
)
:
Zend_View_Helper_NavigationHelper entry point
Detailsrender(
Zend_Navigation_Container $container
=
null
)
:
stringRenders helper
DetailssetDefaultProxy(
string $proxy
)
:
Zend_View_Helper_NavigationSets the default proxy to use in {@link render()}
DetailssetInjectAcl(
bool $injectAcl
=
true
)
:
Zend_View_Helper_NavigationSets whether ACL should be injected when proxying
DetailssetInjectContainer(
bool $injectContainer
=
true
)
:
Zend_View_Helper_NavigationSets whether container should be injected when proxying
DetailssetInjectTranslator(
bool $injectTranslator
=
true
)
:
Zend_View_Helper_NavigationSets whether translator should be injected when proxying
Details