View/Helper/Navigation/Helper.php
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
[email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_View
- Subpackage
- Helper
- Version
- $Id$
\Zend_View_Helper_Navigation_Helper
Package: Zend_View\HelperInterface for navigational helpers
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Methods
getAcl() : \Zend_Acl | null
Returns ACL or null if it isn't set using {@link setAcl()} or
{@link setDefaultAcl()}
ReturnsType | Description |
---|
\Zend_Acl | null | ACL object or null |
getUseAcl() : bool
Returns whether ACL should be used
ReturnsType | Description |
---|
bool | whether ACL should be used |
getUseTranslator() : bool
Returns whether translator should be used
ReturnsType | Description |
---|
bool | whether translator should be used |
hasAcl() : bool
Checks if the helper has an ACL instance
ReturnsType | Description |
---|
bool | whether the helper has a an ACL instance or not |
hasContainer() : bool
Checks if the helper has a container
ReturnsType | Description |
---|
bool | whether the helper has a container or not |
hasRole() : bool
Checks if the helper has an ACL role
ReturnsType | Description |
---|
bool | whether the helper has a an ACL role or not |
hasTranslator() : bool
Checks if the helper has a translator
ReturnsType | Description |
---|
bool | whether the helper has a translator or not |
render(\Zend_Navigation_Container $container = null) : string
ParametersName | Type | Description |
---|
$container | \Zend_Navigation_Container | [optional] container to
render. Default is null,
which indicates that the
helper should render the
container returned by
{@link getContainer()}.
|
---|
ReturnsType | Description |
---|
string | helper output |
Throws setRole(mixed $role = null) : \Zend_View_Helper_Navigation_Helper
Sets ACL role to use when iterating pages
ParametersName | Type | Description |
---|
$role | mixed | [optional] role to set.
Expects a string, an
instance of type
{@link Zend_Acl_Role_Interface},
or null. Default is null.
|
---|
ReturnsThrows setTranslator(mixed $translator = null) : \Zend_View_Helper_Navigation_Helper
Sets translator to use in helper
ParametersName | Type | Description |
---|
$translator | mixed | [optional] translator.
Expects an object of type
{@link Zend_Translate_Adapter}
or {@link Zend_Translate},
or null. Default is null.
|
---|
Returns setUseAcl(bool $useAcl = true) : \Zend_View_Helper_Navigation_Helper
Sets whether ACL should be used
ParametersName | Type | Description |
---|
$useAcl | bool | [optional] whether ACL
should be used. Default is
true.
|
---|
Returns setUseTranslator(bool $useTranslator = true) : \Zend_View_Helper_Navigation_Helper
Sets whether translator should be used
ParametersName | Type | Description |
---|
$useTranslator | bool | [optional] whether
translator should be used.
Default is true.
|
---|
Returns