當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DefaultPlatform::initialize方法代碼示例

本文整理匯總了PHP中DefaultPlatform::initialize方法的典型用法代碼示例。如果您正苦於以下問題:PHP DefaultPlatform::initialize方法的具體用法?PHP DefaultPlatform::initialize怎麽用?PHP DefaultPlatform::initialize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在DefaultPlatform的用法示例。


在下文中一共展示了DefaultPlatform::initialize方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: initialize

 /**
  * Initializes db specific domain mapping.
  */
 protected function initialize()
 {
     parent::initialize();
     $this->schemaDomainMap[PropelTypes::BOOLEAN] = new Domain(PropelTypes::BOOLEAN_EMU, "NUMBER", "1", "0");
     $this->schemaDomainMap[PropelTypes::CLOB] = new Domain(PropelTypes::CLOB_EMU, "CLOB");
     $this->schemaDomainMap[PropelTypes::CLOB_EMU] = $this->schemaDomainMap[PropelTypes::CLOB];
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TINYINT, "NUMBER", "3", "0"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::SMALLINT, "NUMBER", "5", "0"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::INTEGER, "NUMBER"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BIGINT, "NUMBER", "20", "0"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::REAL, "NUMBER"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DOUBLE, "FLOAT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DECIMAL, "NUMBER"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::NUMERIC, "NUMBER"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARCHAR, "NVARCHAR2"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "NVARCHAR2", "2000"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TIME, "DATE"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DATE, "DATE"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TIMESTAMP, "TIMESTAMP"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "LONG RAW"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "BLOB"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "LONG RAW"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::OBJECT, "NVARCHAR2", "2000"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::PHP_ARRAY, "NVARCHAR2", "2000"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::ENUM, "NUMBER", "3", "0"));
 }
開發者ID:kcornejo,項目名稱:estadistica,代碼行數:29,代碼來源:OraclePlatform.php

示例2: initialize

 /**
  * Initializes db specific domain mapping.
  */
 protected function initialize()
 {
     parent::initialize();
     $this->setSchemaDomainMapping(new Domain(PropelTypes::NUMERIC, "DECIMAL"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "MEDIUMTEXT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DATE, "DATETIME"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "BLOB"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "MEDIUMBLOB"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "LONGBLOB"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BLOB, "LONGBLOB"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, "LONGTEXT"));
 }
開發者ID:nextbigsound,項目名稱:propel-orm,代碼行數:15,代碼來源:SqlitePlatform.php

示例3: initialize

 /**
  * Initializes db specific domain mapping.
  */
 protected function initialize()
 {
     parent::initialize();
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BOOLEAN, "TINYINT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::NUMERIC, "DECIMAL"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "TEXT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "BLOB"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "MEDIUMBLOB"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "LONGBLOB"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BLOB, "LONGBLOB"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, "LONGTEXT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TIMESTAMP, "DATETIME"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::OBJECT, "TEXT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::PHP_ARRAY, "TEXT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::ENUM, "TINYINT"));
 }
開發者ID:rubensayshi,項目名稱:propelsandbox,代碼行數:19,代碼來源:MysqlPlatform.php

示例4: initialize

 /**
  * Initializes db specific domain mapping.
  */
 protected function initialize()
 {
     parent::initialize();
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BOOLEAN, "BOOLEAN"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TINYINT, "INT2"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::SMALLINT, "INT2"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BIGINT, "INT8"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::REAL, "FLOAT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DOUBLE, "DOUBLE PRECISION"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "TEXT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "BYTEA"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "BYTEA"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "BYTEA"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BLOB, "BYTEA"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, "TEXT"));
 }
開發者ID:nextbigsound,項目名稱:propel-orm,代碼行數:19,代碼來源:PgsqlPlatform.php

示例5: initialize

 /**
  * Initializes db specific domain mapping.
  */
 protected function initialize()
 {
     parent::initialize();
     $this->setSchemaDomainMapping(new Domain(PropelTypes::INTEGER, "INT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BOOLEAN, "INT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DOUBLE, "FLOAT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "TEXT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, "TEXT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DATE, "DATETIME"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BU_DATE, "DATETIME"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TIME, "DATETIME"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TIMESTAMP, "DATETIME"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BU_TIMESTAMP, "DATETIME"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "BINARY(7132)"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "IMAGE"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "IMAGE"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BLOB, "IMAGE"));
 }
開發者ID:nhemsley,項目名稱:propel,代碼行數:21,代碼來源:MssqlPlatform.php

示例6: initialize

 /**
  * Initializes db specific domain mapping.
  */
 protected function initialize()
 {
     parent::initialize();
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BOOLEAN, "NUMBER", "1", "0"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TINYINT, "NUMBER", "3", "0"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::SMALLINT, "NUMBER", "5", "0"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::INTEGER, "NUMBER"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BIGINT, "NUMBER", "20", "0"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::REAL, "NUMBER"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DOUBLE, "FLOAT"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::DECIMAL, "NUMBER"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::NUMERIC, "NUMBER"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARCHAR, "VARCHAR2"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "VARCHAR2", "2000"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TIME, "DATE"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::TIMESTAMP, "DATE"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "LONG RAW"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::VARBINARY, "BLOB"));
     $this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARBINARY, "LONG RAW"));
 }
開發者ID:Daniel-Marynicz,項目名稱:symfony1-legacy,代碼行數:23,代碼來源:OraclePlatform.php


注:本文中的DefaultPlatform::initialize方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。