Source for file RepositoryInputOutputModule.interface.php

Documentation is available at RepositoryInputOutputModule.interface.php

  1. <?php
  2. /**
  3. * @package polyphony.repository.inputoutput
  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: RepositoryInputOutputModule.interface.php,v 1.5 2007/09/19 14:04:48 adamfranco Exp $
  9. */
  10.  
  11. /**
  12. * InputOutput modules are classes which generate HTML for the display or editing
  13. * of Records. Which InputOutput module to use is determined by the Format
  14. * of the RecordStructure corresponding to that Record. For example, a Structure
  15. * using the "DataManagerPrimitive" Format would use the DataManagerPrimative
  16. * InputOutput module for displaying generating forms for editing its data.
  17. *
  18. * @package polyphony.repository.inputoutput
  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: RepositoryInputOutputModule.interface.php,v 1.5 2007/09/19 14:04:48 adamfranco Exp $
  24. */
  25.  
  26. class RepositoryInputOutputModuleInterface {
  27. /**
  28. * Create wizard steps for editing the values of the specified Record and
  29. * add them to the wizard.
  30. *
  31. * @param object $record
  32. * @param object $wizard The wizard to add the steps to.
  33. * @return void
  34. * @access public
  35. * @since 10/19/04
  36. */
  37. function createWizardSteps ( $record, $wizard ) {
  38. die ("Method <b>".__FUNCTION__."()</b> declared in interface <b> ".__CLASS__."</b> has not been overloaded in a child class.");
  39. }
  40. /**
  41. * Create wizard steps for editing the values of the specified Record and
  42. * add them to the wizard.
  43. *
  44. * @param object $record
  45. * @param object $wizard The wizard to add the steps to.
  46. * @param array $partStructures An ordered array of the partstructures to include.
  47. * @return void
  48. * @access public
  49. * @since 10/19/04
  50. */
  51. function createWizardStepsForPartStructures ( $record, $wizard, $partStructures ) {
  52. die ("Method <b>".__FUNCTION__."()</b> declared in interface <b> ".__CLASS__."</b> has not been overloaded in a child class.");
  53. }
  54. /**
  55. * Get the values submitted in the wizard and update the Record with them.
  56. *
  57. * @param object $record
  58. * @param object $wizard
  59. * @return void
  60. * @access public
  61. * @since 10/19/04
  62. */
  63. function updateFromWizard ( $record, $wizard ) {
  64. die ("Method <b>".__FUNCTION__."()</b> declared in interface <b> ".__CLASS__."</b> has not been overloaded in a child class.");
  65. }
  66. /**
  67. * Generate HTML for displaying the Record
  68. *
  69. * @param object $record
  70. * @return string
  71. * @access public
  72. * @since 10/19/04
  73. */
  74. function generateDisplay ( $asset, $record ) {
  75. die ("Method <b>".__FUNCTION__."()</b> declared in interface <b> ".__CLASS__."</b> has not been overloaded in a child class.");
  76. }
  77. /**
  78. * Generate HTML for displaying particular parts of the Record
  79. *
  80. * @param object $record The record to print.
  81. * @param array $partStructures An array of particular partstructures to print.
  82. * @return string
  83. * @access public
  84. * @since 10/19/04
  85. */
  86. function generateDisplayForPartStructures ( $asset, $record, $partStructures ) {
  87. die ("Method <b>".__FUNCTION__."()</b> declared in interface <b> ".__CLASS__."</b> has not been overloaded in a child class.");
  88. }
  89. }
  90.  
  91. ?>

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