Interface.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  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.
  14. *
  15. * @category Zend
  16. * @package Zend_Acl
  17. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  18. * @license http://framework.zend.com/license/new-bsd New BSD License
  19. * @version $Id$
  20. */
  21. /**
  22. * @see Zend_Acl
  23. */
  24. #require_once 'Zend/Acl.php';
  25. /**
  26. * @see Zend_Acl_Role_Interface
  27. */
  28. #require_once 'Zend/Acl/Role/Interface.php';
  29. /**
  30. * @see Zend_Acl_Resource_Interface
  31. */
  32. #require_once 'Zend/Acl/Resource/Interface.php';
  33. /**
  34. * @category Zend
  35. * @package Zend_Acl
  36. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  37. * @license http://framework.zend.com/license/new-bsd New BSD License
  38. */
  39. interface Zend_Acl_Assert_Interface
  40. {
  41. /**
  42. * Returns true if and only if the assertion conditions are met
  43. *
  44. * This method is passed the ACL, Role, Resource, and privilege to which the authorization query applies. If the
  45. * $role, $resource, or $privilege parameters are null, it means that the query applies to all Roles, Resources, or
  46. * privileges, respectively.
  47. *
  48. * @param Zend_Acl $acl
  49. * @param Zend_Acl_Role_Interface $role
  50. * @param Zend_Acl_Resource_Interface $resource
  51. * @param string $privilege
  52. * @return boolean
  53. */
  54. public function assert(Zend_Acl $acl, Zend_Acl_Role_Interface $role = null, Zend_Acl_Resource_Interface $resource = null,
  55. $privilege = null);
  56. }