Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / View / Helper / Navigation / HelperInterface.php
blob06a47f7e77a29c17c902c2b68dfd65b20472f0b7
1 <?php
2 /**
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
8 */
10 namespace Zend\View\Helper\Navigation;
12 use Zend\Navigation;
13 use Zend\Permissions\Acl;
14 use Zend\View\Helper\HelperInterface as BaseHelperInterface;
16 /**
17 * Interface for navigational helpers
19 interface HelperInterface extends BaseHelperInterface
21 /**
22 * Magic overload: Should proxy to {@link render()}.
24 * @return string
26 public function __toString();
28 /**
29 * Renders helper
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
35 * getContainer()}.
36 * @return string helper output
37 * @throws \Zend\View\Exception\ExceptionInterface
39 public function render($container = null);
41 /**
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);
49 /**
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();
57 /**
58 * Checks if the helper has an ACL instance
60 * @return bool
62 public function hasAcl();
64 /**
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
70 * should be reset.
71 * @return HelperInterface
73 public function setContainer($container = null);
75 /**
76 * Returns the navigation container the helper operates on by default
78 * @return Navigation\AbstractContainer navigation container
80 public function getContainer();
82 /**
83 * Checks if the helper has a container
85 * @return bool
87 public function hasContainer();
89 /**
90 * Render invisible items?
92 * @param bool $renderInvisible [optional] boolean flag
93 * @return HelperInterface
95 public function setRenderInvisible($renderInvisible = true);
97 /**
98 * Return renderInvisible flag
100 * @return bool
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
109 * is null.
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
125 * @return bool
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
140 * @return bool
142 public function getUseAcl();