Source for file RepositorySearchModule.interface.php

Documentation is available at RepositorySearchModule.interface.php

  1. <?php
  2. /**
  3. * @package polyphony.repository.search
  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: RepositorySearchModule.interface.php,v 1.6 2007/09/19 14:04:48 adamfranco Exp $
  9. */
  10.  
  11. /**
  12. * Search Modules generate forms for and collect/format the subitions of said forms
  13. * for various Digital Repository search types.
  14. *
  15. * @package polyphony.repository.search
  16. *
  17. * @copyright Copyright &copy; 2005, Middlebury College
  18. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  19. *
  20. * @version $Id: RepositorySearchModule.interface.php,v 1.6 2007/09/19 14:04:48 adamfranco Exp $
  21. */
  22.  
  23. class RepositorySearchModuleInterface {
  24. /**
  25. * Create a form for searching.
  26. *
  27. * @param string $action The destination on form submit.
  28. * @return string
  29. * @access public
  30. * @since 10/19/04
  31. */
  32. function createSearchForm ($repository, $action ) {
  33. die ("Method <b>".__FUNCTION__."()</b> declared in interface <b> ".__CLASS__."</b> has not been overloaded in a child class.");
  34. }
  35. /**
  36. * Create the fields (without form tags) for searching
  37. *
  38. * @param object Repository $repository
  39. * @return string
  40. * @access public
  41. * @since 4/26/06
  42. */
  43. function createSearchFields ($repository) {
  44. die ("Method <b>".__FUNCTION__."()</b> declared in interface <b> ".__CLASS__."</b> has not been overloaded in a child class.");
  45. }
  46. /**
  47. * Get the formatted search terms based on the submissions of the form
  48. *
  49. * @return mixed
  50. * @access public
  51. * @since 10/28/04
  52. */
  53. function getSearchCriteria () {
  54. die ("Method <b>".__FUNCTION__."()</b> declared in interface <b> ".__CLASS__."</b> has not been overloaded in a child class.");
  55. }
  56. }
  57.  
  58. ?>

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