1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- /** @package HelloWorld::Model::DAO */
- /** import supporting libraries */
- require_once("verysimple/Phreeze/IDaoMap.php");
- /**
- * FortuneMap is a static class with functions used to get FieldMap and KeyMap information that
- * is used by Phreeze to map the FortuneDAO to the Fortune datastore.
- *
- * WARNING: THIS IS AN AUTO-GENERATED FILE
- *
- * This file should generally not be edited by hand except in special circumstances.
- * You can override the default fetching strategies for KeyMaps in _config.php.
- * Leaving this file alone will allow easy re-generation of all DAOs in the event of schema changes
- *
- * @package HelloWorld::Model::DAO
- * @author ClassBuilder
- * @version 1.0
- */
- class FortuneMap implements IDaoMap
- {
- /**
- * Returns a singleton array of FieldMaps for the Fortune object
- *
- * @access public
- * @return array of FieldMaps
- */
- public static function GetFieldMaps()
- {
- static $fm = null;
- if ($fm == null)
- {
- $fm = Array();
- $fm["Id"] = new FieldMap("Id","Fortune","id",true,FM_TYPE_INT,10,null,true);
- $fm["Message"] = new FieldMap("Message","Fortune","message",false,FM_TYPE_VARCHAR,2048,null,false);
- }
- return $fm;
- }
- /**
- * Returns a singleton array of KeyMaps for the Fortune object
- *
- * @access public
- * @return array of KeyMaps
- */
- public static function GetKeyMaps()
- {
- static $km = null;
- if ($km == null)
- {
- $km = Array();
- }
- return $km;
- }
- }
- ?>
|