Staple_Auth_AdvancedAdapter.php 839 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * @author Ironpilot
  4. *
  5. *
  6. */
  7. class Staple_Auth_AdvancedAdapter
  8. {
  9. /**
  10. * This function must be implemented to check the authorization based on the adapter
  11. * at hand. The function must return a boolean true for the Staple_Auth object to view
  12. * authentication as successful. If a non-boolean true is returned, authentication will
  13. * fail.
  14. * @return bool
  15. */
  16. public function getAuth($credentials);
  17. /**
  18. *
  19. * This function must be implemented to return a numeric level of access. This level is
  20. * used to determine feature access based on account type.
  21. * @return int
  22. */
  23. public function getAccess($route);
  24. /**
  25. * Returns the userid from the adapater
  26. * @return string
  27. */
  28. public function getUserId();
  29. public function noAccess();
  30. public function doLogin();
  31. public function afterLogin();
  32. }
  33. ?>