File indexing completed on 2024-12-22 05:36:27
0001 <?php 0002 /** 0003 * Zend Framework 0004 * 0005 * LICENSE 0006 * 0007 * This source file is subject to the new BSD license that is bundled 0008 * with this package in the file LICENSE.txt. 0009 * It is also available through the world-wide-web at this URL: 0010 * http://framework.zend.com/license/new-bsd 0011 * If you did not receive a copy of the license and are unable to 0012 * obtain it through the world-wide-web, please send an email 0013 * to license@zend.com so we can send you a copy immediately. 0014 * 0015 * @category Zend 0016 * @package Zend_Acl 0017 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0018 * @license http://framework.zend.com/license/new-bsd New BSD License 0019 * @version $Id$ 0020 */ 0021 0022 0023 /** 0024 * @see Zend_Acl 0025 */ 0026 // require_once 'Zend/Acl.php'; 0027 0028 0029 /** 0030 * @see Zend_Acl_Role_Interface 0031 */ 0032 // require_once 'Zend/Acl/Role/Interface.php'; 0033 0034 0035 /** 0036 * @see Zend_Acl_Resource_Interface 0037 */ 0038 // require_once 'Zend/Acl/Resource/Interface.php'; 0039 0040 0041 /** 0042 * @category Zend 0043 * @package Zend_Acl 0044 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0045 * @license http://framework.zend.com/license/new-bsd New BSD License 0046 */ 0047 interface Zend_Acl_Assert_Interface 0048 { 0049 /** 0050 * Returns true if and only if the assertion conditions are met 0051 * 0052 * This method is passed the ACL, Role, Resource, and privilege to which the authorization query applies. If the 0053 * $role, $resource, or $privilege parameters are null, it means that the query applies to all Roles, Resources, or 0054 * privileges, respectively. 0055 * 0056 * @param Zend_Acl $acl 0057 * @param Zend_Acl_Role_Interface $role 0058 * @param Zend_Acl_Resource_Interface $resource 0059 * @param string $privilege 0060 * @return boolean 0061 */ 0062 public function assert(Zend_Acl $acl, Zend_Acl_Role_Interface $role = null, Zend_Acl_Resource_Interface $resource = null, 0063 $privilege = null); 0064 }