1. sfSecurityUser.class.php
  2. /** * sfSecurityUser interface provides advanced security manipulation methods. * * @package symfony * @subpackage user * @author Fabien Potencier * @author Sean Kerr * @version SVN: $Id: sfSecurityUser.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */
  3. interface sfSecurityUser
  4. {
  5. /**
  6. * Add a credential to this user.
  7. *
  8. * @param mixed $credential Credential data.
  9. */
  10. public function addCredential($credential);
  11. /**
  12. * Clear all credentials associated with this user.
  13. */
  14. public function clearCredentials();
  15. /**
  16. * Indicates whether or not this user has a credential.
  17. *
  18. * @param mixed $credential Credential data.
  19. *
  20. * @return bool true, if this user has the credential, otherwise false.
  21. */
  22. public function hasCredential($credential);
  23. /**
  24. * Indicates whether or not this user is authenticated.
  25. *
  26. * @return bool true, if this user is authenticated, otherwise false.
  27. */
  28. public function isAuthenticated();
  29. /**
  30. * Remove a credential from this user.
  31. *
  32. * @param mixed $credential Credential data.
  33. */
  34. public function removeCredential($credential);
  35. /**
  36. * Set the authenticated status of this user.
  37. *
  38. * @param bool $authenticated A flag indicating the authenticated status of this user.
  39. */
  40. public function setAuthenticated($authenticated);
  41. }

Debug toolbar