[geeklog-cvs] Geeklog-2/system/Propel/Geeklog-2/map Gl2TimezoneMapBuilder.php,NONE,1.1

tony at iowaoutdoors.org tony at iowaoutdoors.org
Mon Dec 20 17:10:38 EST 2004


Update of /var/cvs/Geeklog-2/system/Propel/Geeklog-2/map
In directory www:/tmp/cvs-serv28006/Propel/Geeklog-2/map

Added Files:
	Gl2TimezoneMapBuilder.php 
Log Message:
Some new files.  Not sure why all propel classes are listed every time...sorry


--- NEW FILE: Gl2TimezoneMapBuilder.php ---
<?php
require_once 'propel/map/MapBuilder.php';
include_once 'creole/CreoleTypes.php';

/**
 * This class adds structure of 'gl2_timezone' table to 'Geeklog_2' DatabaseMap object.
 *
 * These statically-built map classes are used by Propel to do runtime db structure discovery.
 * For example, the createSelectSql() method checks the type of a given column used in an 
 * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive 
 * (i.e. if it's a text column type).
 *
 *  This class was autogenerated by Propel on:
 *
 * [Mon Dec 20 15:25:53 2004]
 *
 * @see BasePeer
 * @see DatabaseMap
 * @package Geeklog-2.map
 */
class Gl2TimezoneMapBuilder implements MapBuilder {

    /**
     * The name of this class
     */
    const CLASS_NAME = "Geeklog-2.map.Gl2TimezoneMapBuilder";
	
    /**
     * The database map.
     */
    private $dbMap = null;

    /**
     * Tells us if this DatabaseMapBuilder is built so that we
     * don't have to re-build it every time.
     *
     * @return true if this DatabaseMapBuilder is built
     */
    public function isBuilt()
    {
        return ($this->dbMap !== null);
    }

    /**
     * Gets the databasemap this map builder built.
     *
     * @return the databasemap
     */
    public function getDatabaseMap()
    {
        return $this->dbMap;
    }

    /**
     * The doBuild() method builds the DatabaseMap
     *
	 * @return void
     * @throws PropelException
     */
    public function doBuild()
    {
		$this->dbMap = Propel::getDatabaseMap("Geeklog_2");
		
		$tMap = $this->dbMap->addTable("gl2_timezone");
		$tMap->setPhpName("Gl2Timezone");
		
         
		$tMap->setUseIdGenerator(false);
		 
						
		 
		
		// Add columns to map
		$tMap->addPrimaryKey("TIMEZONE_ID", "TimezoneId", "int", CreoleTypes::SMALLINT, true);
		$tMap->addColumn("CODE", "Code", "string", CreoleTypes::CHAR, true, 3);
		$tMap->addColumn("OFFSET", "Offset", "int", CreoleTypes::INTEGER, true, null);
		$tMap->addColumn("DESCRIPTION", "Description", "string", CreoleTypes::VARCHAR, false, 128);
				
    }
}




More information about the geeklog-cvs mailing list