Source for file logout.act.php

Documentation is available at logout.act.php

  1. <?php
  2. /**
  3. * @since 7/21/05
  4. * @package polyphony.authentication
  5. *
  6. * @copyright Copyright &copy; 2005, Middlebury College
  7. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  8. *
  9. * @version $Id: logout.act.php,v 1.10 2007/09/19 14:04:53 adamfranco Exp $
  10. */
  11.  
  12. require_once(POLYPHONY."/main/library/AbstractActions/Action.class.php");
  13.  
  14. /**
  15. * Change the language to the one specified by the user
  16. *
  17. * @since 7/21/05
  18. * @package polyphony.language
  19. *
  20. * @copyright Copyright &copy; 2005, Middlebury College
  21. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  22. *
  23. * @version $Id: logout.act.php,v 1.10 2007/09/19 14:04:53 adamfranco Exp $
  24. */
  25. class logoutAction
  26. extends Action
  27. {
  28. /**
  29. * Check Authorizations
  30. *
  31. * @return boolean
  32. * @access public
  33. * @since 4/26/05
  34. */
  35. function isAuthorizedToExecute () {
  36. return TRUE;
  37. }
  38. /**
  39. * Execute this action.
  40. *
  41. * @param object Harmoni $harmoni
  42. * @return mixed
  43. * @access public
  44. * @since 4/25/05
  45. */
  46. function execute ( $harmoni ) {
  47. $authN = Services::getService("AuthN");
  48. // dethenticate. :-)
  49. $authN->destroyAuthentication();
  50. // Send us back to where we were
  51. $harmoni->history->goBack("polyphony/login");
  52. $null = null;
  53. return $null;
  54. }
  55. }

Documentation generated on Wed, 19 Sep 2007 10:24:55 -0400 by phpDocumentor 1.3.0RC3