Source for file RequestHandler.interface.php

Documentation is available at RequestHandler.interface.php

  1. <?php
  2.  
  3. /**
  4. * @package harmoni.architecture.request
  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: RequestHandler.interface.php,v 1.3 2007/09/04 20:25:31 adamfranco Exp $
  10. */
  11.  
  12. /**
  13. * The job of a RequestHandler is twofold:
  14. *
  15. * 1) handle incoming request data -- could be from $_REQUEST-type arrays,
  16. * could be from session variables, etc.
  17. * 2) handle the production of URLs with given contextual data/query using an
  18. * associated URLWriter class.
  19. *
  20. * @package harmoni.architecture.request
  21. *
  22. * @copyright Copyright &copy; 2005, Middlebury College
  23. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  24. *
  25. * @version $Id: RequestHandler.interface.php,v 1.3 2007/09/04 20:25:31 adamfranco Exp $
  26. */
  27.  
  28. class RequestHandler {
  29. /**
  30. * Returns an associative array of key=value pairs corresponding to the request
  31. * data from the browser. This could just be the data from $_REQUEST, in the
  32. * simplest case.
  33. *
  34. * @return array
  35. * @access public
  36. */
  37. function getRequestVariables() {
  38. throwError(new Error("Method <b>".__FUNCTION__."()</b> declared in abstract class <b> ".__CLASS__."</b> has not been overloaded in a child class.","OutputHandler",true));
  39. }
  40. /**
  41. * Returns an associative array of file upload data. This will usually come from
  42. * the $_FILES superglobal.
  43. *
  44. * @return array
  45. * @access public
  46. */
  47. function getFileVariables() {
  48. throwError(new Error("Method <b>".__FUNCTION__."()</b> declared in abstract class <b> ".__CLASS__."</b> has not been overloaded in a child class.","OutputHandler",true));
  49. }
  50. /**
  51. * Returns a new {@link URLWriter} object corresponding to this RequestHandler.
  52. *
  53. * @return ref object URLWriter
  54. * @access public
  55. */
  56. function createURLWriter() {
  57. throwError(new Error("Method <b>".__FUNCTION__."()</b> declared in abstract class <b> ".__CLASS__."</b> has not been overloaded in a child class.","OutputHandler",true));
  58. }
  59. /**
  60. * Returns a dotted-pair string representing the module and action requested
  61. * by the end user ("module.action" format).
  62. *
  63. * @return string
  64. * @access public
  65. */
  66. function getRequestedModuleAction() {
  67. throwError(new Error("Method <b>".__FUNCTION__."()</b> declared in abstract class <b> ".__CLASS__."</b> has not been overloaded in a child class.","OutputHandler",true));
  68. }
  69. }
  70.  
  71. ?>

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