Source for file IPermissionAssertion.php

Documentation is available at IPermissionAssertion.php

  1. 1: <?php
  2. 2:  
  3. 3: /**
  4. 4:  * Nette Framework
  5. 5:  *
  6. 6:  * @copyright  Copyright (c) 2004, 2010 David Grudl
  7. 7:  * @license    http://nettephp.com/license  Nette license
  8. 8:  * @link       http://nettephp.com
  9. 9:  * @category   Nette
  10. 10:  * @package    Nette\Security
  11. 11:  */
  12. 12:  
  13. 13:  
  14. 14:  
  15. 15: /**
  16. 16:  * Represents conditional ACL Rules with Assertions.
  17. 17:  *
  18. 18:  * @copyright  Copyright (c) 2004, 2010 David Grudl
  19. 19:  * @package    Nette\Security
  20. 20:  */
  21. 22: {
  22. 23:     /**
  23. 24:      * Returns true if and only if the assertion conditions are met.
  24. 25:      *
  25. 26:      * This method is passed the ACL, Role, Resource, and privilege to which the authorization query applies. If the
  26. 27:      * $role, $resource, or $privilege parameters are Permission::ALL, it means that the query applies to all Roles,
  27. 28:      * Resources, or privileges, respectively.
  28. 29:      *
  29. 30:      * @param  Permission 
  30. 31:      * @param  string  role
  31. 32:      * @param  string  resource
  32. 33:      * @param  string|NULL privilege
  33. 34:      * @return bool 
  34. 35:      */
  35. 36:     public function assert(Permission $acl$roleId$resourceId$privilege);
  36. 37: }