7 * This source file is subject to the new BSD license that is bundled
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to license@zend.com so we can send you a copy immediately.
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
26 require_once 'Zend/Acl.php';
30 * @see Zend_Acl_Role_Interface
32 require_once 'Zend/Acl/Role/Interface.php';
36 * @see Zend_Acl_Resource_Interface
38 require_once 'Zend/Acl/Resource/Interface.php';
44 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
45 * @license http://framework.zend.com/license/new-bsd New BSD License
47 interface Zend_Acl_Assert_Interface
50 * Returns true if and only if the assertion conditions are met
52 * This method is passed the ACL, Role, Resource, and privilege to which the authorization query applies. If the
53 * $role, $resource, or $privilege parameters are null, it means that the query applies to all Roles, Resources, or
54 * privileges, respectively.
56 * @param Zend_Acl $acl
57 * @param Zend_Acl_Role_Interface $role
58 * @param Zend_Acl_Resource_Interface $resource
59 * @param string $privilege
62 public function assert(Zend_Acl
$acl, Zend_Acl_Role_Interface
$role = null, Zend_Acl_Resource_Interface
$resource = null,