RegistrationRequestsTableMapBuilder.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * This class adds structure of 'registrationRequests' table to 'propel' DatabaseMap object.
  4. *
  5. *
  6. * This class was autogenerated by Propel 1.3.0-dev on:
  7. *
  8. * Sat Sep 26 07:07:41 2009
  9. *
  10. *
  11. * These statically-built map classes are used by Propel to do runtime db structure discovery.
  12. * For example, the createSelectSql() method checks the type of a given column used in an
  13. * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
  14. * (i.e. if it's a text column type).
  15. *
  16. * @package lib.model.map
  17. */
  18. class RegistrationRequestsTableMapBuilder implements MapBuilder {
  19. /**
  20. * The (dot-path) name of this class
  21. */
  22. const CLASS_NAME = 'lib.model.map.RegistrationRequestsTableMapBuilder';
  23. /**
  24. * The database map.
  25. */
  26. private $dbMap;
  27. /**
  28. * Tells us if this DatabaseMapBuilder is built so that we
  29. * don't have to re-build it every time.
  30. *
  31. * @return boolean true if this DatabaseMapBuilder is built, false otherwise.
  32. */
  33. public function isBuilt()
  34. {
  35. return ($this->dbMap !== null);
  36. }
  37. /**
  38. * Gets the databasemap this map builder built.
  39. *
  40. * @return the databasemap
  41. */
  42. public function getDatabaseMap()
  43. {
  44. return $this->dbMap;
  45. }
  46. /**
  47. * The doBuild() method builds the DatabaseMap
  48. *
  49. * @return void
  50. * @throws PropelException
  51. */
  52. public function doBuild()
  53. {
  54. $this->dbMap = Propel::getDatabaseMap(RegistrationRequestsTablePeer::DATABASE_NAME);
  55. $tMap = $this->dbMap->addTable(RegistrationRequestsTablePeer::TABLE_NAME);
  56. $tMap->setPhpName('RegistrationRequestsTable');
  57. $tMap->setClassname('RegistrationRequestsTable');
  58. $tMap->setUseIdGenerator(true);
  59. $tMap->addPrimaryKey('ID', 'Id', 'INTEGER', true, 20);
  60. $tMap->addColumn('NAME', 'Name', 'LONGVARCHAR', true, null);
  61. $tMap->addColumn('DAYTIME', 'Daytime', 'TIMESTAMP', true, null);
  62. $tMap->addColumn('DATALOCATION', 'Datalocation', 'LONGVARCHAR', true, null);
  63. } // doBuild()
  64. } // RegistrationRequestsTableMapBuilder