3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\View\Helper\Navigation
;
13 use Zend\Permissions\Acl
;
14 use Zend\View\Helper\HelperInterface
as BaseHelperInterface
;
17 * Interface for navigational helpers
19 interface HelperInterface
extends BaseHelperInterface
22 * Magic overload: Should proxy to {@link render()}.
26 public function __toString();
31 * @param string|Navigation\AbstractContainer $container [optional] container to render.
32 * Default is null, which indicates
33 * that the helper should render
34 * the container returned by {@link
36 * @return string helper output
37 * @throws \Zend\View\Exception\ExceptionInterface
39 public function render($container = null);
42 * Sets ACL to use when iterating pages
44 * @param Acl\AclInterface $acl [optional] ACL instance
45 * @return HelperInterface
47 public function setAcl(Acl\AclInterface
$acl = null);
50 * Returns ACL or null if it isn't set using {@link setAcl()} or
51 * {@link setDefaultAcl()}
53 * @return Acl\AclInterface|null
55 public function getAcl();
58 * Checks if the helper has an ACL instance
62 public function hasAcl();
65 * Sets navigation container the helper should operate on by default
67 * @param string|Navigation\AbstractContainer $container [optional] container to operate
68 * on. Default is null, which
69 * indicates that the container
71 * @return HelperInterface
73 public function setContainer($container = null);
76 * Returns the navigation container the helper operates on by default
78 * @return Navigation\AbstractContainer navigation container
80 public function getContainer();
83 * Checks if the helper has a container
87 public function hasContainer();
90 * Render invisible items?
92 * @param bool $renderInvisible [optional] boolean flag
93 * @return HelperInterface
95 public function setRenderInvisible($renderInvisible = true);
98 * Return renderInvisible flag
102 public function getRenderInvisible();
105 * Sets ACL role to use when iterating pages
107 * @param mixed $role [optional] role to set. Expects a string, an
108 * instance of type {@link Acl\Role}, or null. Default
110 * @throws \Zend\View\Exception\ExceptionInterface if $role is invalid
111 * @return HelperInterface
113 public function setRole($role = null);
116 * Returns ACL role to use when iterating pages, or null if it isn't set
118 * @return string|Acl\Role\RoleInterface|null
120 public function getRole();
123 * Checks if the helper has an ACL role
127 public function hasRole();
130 * Sets whether ACL should be used
132 * @param bool $useAcl [optional] whether ACL should be used. Default is true.
133 * @return HelperInterface
135 public function setUseAcl($useAcl = true);
138 * Returns whether ACL should be used
142 public function getUseAcl();