FortuneMap.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /** @package HelloWorld::Model::DAO */
  3. /** import supporting libraries */
  4. require_once("verysimple/Phreeze/IDaoMap.php");
  5. /**
  6. * FortuneMap is a static class with functions used to get FieldMap and KeyMap information that
  7. * is used by Phreeze to map the FortuneDAO to the Fortune datastore.
  8. *
  9. * WARNING: THIS IS AN AUTO-GENERATED FILE
  10. *
  11. * This file should generally not be edited by hand except in special circumstances.
  12. * You can override the default fetching strategies for KeyMaps in _config.php.
  13. * Leaving this file alone will allow easy re-generation of all DAOs in the event of schema changes
  14. *
  15. * @package HelloWorld::Model::DAO
  16. * @author ClassBuilder
  17. * @version 1.0
  18. */
  19. class FortuneMap implements IDaoMap
  20. {
  21. /**
  22. * Returns a singleton array of FieldMaps for the Fortune object
  23. *
  24. * @access public
  25. * @return array of FieldMaps
  26. */
  27. public static function GetFieldMaps()
  28. {
  29. static $fm = null;
  30. if ($fm == null)
  31. {
  32. $fm = Array();
  33. $fm["Id"] = new FieldMap("Id","Fortune","id",true,FM_TYPE_INT,10,null,true);
  34. $fm["Message"] = new FieldMap("Message","Fortune","message",false,FM_TYPE_VARCHAR,2048,null,false);
  35. }
  36. return $fm;
  37. }
  38. /**
  39. * Returns a singleton array of KeyMaps for the Fortune object
  40. *
  41. * @access public
  42. * @return array of KeyMaps
  43. */
  44. public static function GetKeyMaps()
  45. {
  46. static $km = null;
  47. if ($km == null)
  48. {
  49. $km = Array();
  50. }
  51. return $km;
  52. }
  53. }
  54. ?>