Source for file FormActionNamePassTokenCollector.class.php

Documentation is available at FormActionNamePassTokenCollector.class.php

  1. <?php
  2. /**
  3. * @package harmoni.osid_v2.authentication
  4. *
  5. * @copyright Copyright &copy; 2005, Middlebury College
  6. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  7. *
  8. * @version $Id: FormActionNamePassTokenCollector.class.php,v 1.3 2005/07/19 15:57:51 adamfranco Exp $
  9. */
  10.  
  11. require_once(dirname(__FILE__)."/BasicFormNamePassTokenCollector.class.php");
  12.  
  13. /**
  14. * The HTTPAuthNamePassTokenCollector prompts a user for their name and password
  15. * by sending HTTP Authenticatio headers to the user.
  16. *
  17. * @package harmoni.osid_v2.authentication
  18. *
  19. * @copyright Copyright &copy; 2005, Middlebury College
  20. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  21. *
  22. * @version $Id: FormActionNamePassTokenCollector.class.php,v 1.3 2005/07/19 15:57:51 adamfranco Exp $
  23. */
  24. class FormActionNamePassTokenCollector
  25. extends BasicFormNamePassTokenCollector
  26. {
  27. /**
  28. * Constructor
  29. *
  30. * @param string $module
  31. * @param string $action
  32. * @return object
  33. * @access public
  34. * @since 3/22/05
  35. */
  36. function FormActionNamePassTokenCollector ($url) {
  37. if (count($_GET) && !ereg("\?", $url)) {
  38. $url .= "?";
  39. foreach ($_GET as $name => $value) {
  40. $url .= "&amp;".$name."=".$value;
  41. }
  42. }
  43. $this->_url = $url;
  44. }
  45. /**
  46. * Prompt the user to supply their tokens
  47. *
  48. * @return void
  49. * @access public
  50. * @since 3/16/05
  51. */
  52. function prompt () {
  53. RequestContext::locationHeader($this->_url);
  54. }
  55. }
  56.  
  57. ?>

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