Source for file IIdentity.php

Documentation is available at IIdentity.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 the user of application.
  17. 17:  *
  18. 18:  * @copyright  Copyright (c) 2004, 2010 David Grudl
  19. 19:  * @package    Nette\Security
  20. 20:  */
  21. 21: interface IIdentity
  22. 22: {
  23. 23:  
  24. 24:     /**
  25. 25:      * Returns the name of user.
  26. 26:      * @return string 
  27. 27:      */
  28. 28:     //function getName();
  29. 29:  
  30. 30:     /**
  31. 31:      * Returns a list of roles that the user is a member of.
  32. 32:      * @return array 
  33. 33:      */
  34. 34:     function getRoles();
  35. 35:  
  36. 36: }