当前位置: 首页>>代码示例>>PHP>>正文


PHP AIR2_Record::setTableDefinition方法代码示例

本文整理汇总了PHP中AIR2_Record::setTableDefinition方法的典型用法代码示例。如果您正苦于以下问题:PHP AIR2_Record::setTableDefinition方法的具体用法?PHP AIR2_Record::setTableDefinition怎么用?PHP AIR2_Record::setTableDefinition使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AIR2_Record的用法示例。


在下文中一共展示了AIR2_Record::setTableDefinition方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setTableDefinition

 /**
  * Set the table columns
  */
 public function setTableDefinition()
 {
     $this->setTableName('image');
     // identifiers and foreign keys
     $this->hasColumn('img_id', 'integer', 4, array('primary' => true, 'autoincrement' => true));
     $this->hasColumn('img_uuid', 'string', 12, array('fixed' => true, 'notnull' => true, 'unique' => true));
     $this->hasColumn('img_xid', 'integer', 4, array('notnull' => true));
     $this->hasColumn('img_ref_type', 'string', 1, array('notnull' => true));
     // file metadata
     $this->hasColumn('img_file_name', 'string', 128, array());
     $this->hasColumn('img_file_size', 'integer', 4, array());
     $this->hasColumn('img_content_type', 'string', 64, array());
     $this->hasColumn('img_dtim', 'timestamp', null, array());
     // stamps
     $this->hasColumn('img_cre_user', 'integer', 4, array('notnull' => true));
     $this->hasColumn('img_upd_user', 'integer', 4, array());
     $this->hasColumn('img_cre_dtim', 'timestamp', null, array('notnull' => true));
     $this->hasColumn('img_upd_dtim', 'timestamp', null, array());
     parent::setTableDefinition();
     // subclasses (must also be in models directory)
     $subclasses = array();
     foreach (self::$CONFIG as $ref_type => $def) {
         $subclasses[$def['class']] = array('img_ref_type' => $ref_type);
     }
     $this->setSubclasses($subclasses);
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:29,代码来源:Image.php

示例2: setTableDefinition

 /**
  * Set the table columns
  */
 public function setTableDefinition()
 {
     $this->setTableName('password_reset');
     $this->hasColumn('pwr_uuid', 'string', 32, array('fixed' => true, 'primary' => true));
     $this->hasColumn('pwr_expiration_dtim', 'timestamp', null, array('notnull' => true));
     $this->hasColumn('pwr_user_id', 'integer', 4, array('notnull' => true));
     parent::setTableDefinition();
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:11,代码来源:PasswordReset.php

示例3: setTableDefinition

 /**
  * Set the table columns
  */
 public function setTableDefinition()
 {
     $this->setTableName('state');
     $this->hasColumn('state_id', 'integer', 4, array('primary' => true, 'autoincrement' => true));
     $this->hasColumn('state_name', 'string', 128, array('notnull' => true));
     $this->hasColumn('state_code', 'string', 2, array('fixed' => true, 'notnull' => true));
     parent::setTableDefinition();
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:11,代码来源:State.php

示例4: setTableDefinition

 /**
  * Set the table columns
  */
 public function setTableDefinition()
 {
     $this->setTableName('src_org_cache');
     $this->hasColumn('soc_src_id', 'integer', 4, array('primary' => true));
     $this->hasColumn('soc_org_id', 'integer', 4, array('primary' => true));
     $this->hasColumn('soc_status', 'string', 1, array('fixed' => true, 'notnull' => true));
     parent::setTableDefinition();
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:11,代码来源:SrcOrgCache.php

示例5: setTableDefinition

 /**
  * Set the table columns
  */
 public function setTableDefinition()
 {
     $this->setTableName('stale_record');
     $this->hasColumn('str_xid', 'integer', 4, array('primary' => true));
     $this->hasColumn('str_type', 'string', 1, array('primary' => true));
     $this->hasColumn('str_upd_dtim', 'timestamp', null, array('notnull' => true));
     parent::setTableDefinition();
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:11,代码来源:StaleRecord.php

示例6: setTableDefinition

 /**
  * Set the table columns
  */
 public function setTableDefinition()
 {
     $this->setTableName('locale');
     $this->hasColumn('loc_id', 'integer', 4, array('primary' => true, 'autoincrement' => true));
     $this->hasColumn('loc_key', 'string', 5, array('fixed' => true, 'notnull' => true));
     $this->hasColumn('loc_lang', 'string', 255, array());
     $this->hasColumn('loc_region', 'string', 255, array());
     parent::setTableDefinition();
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:12,代码来源:Locale.php

示例7: setTableDefinition

 /**
  * Set the table columns
  */
 public function setTableDefinition()
 {
     $this->setTableName('api_stat');
     $this->hasColumn('as_id', 'integer', 4, array('primary' => true, 'autoincrement' => true));
     $this->hasColumn('as_ak_id', 'integer', 4, array('notnull' => true));
     $this->hasColumn('as_ip_addr', 'string', 16, array('notnull' => true));
     $this->hasColumn('as_cre_dtim', 'timestamp', null, array('notnull' => true));
     parent::setTableDefinition();
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:12,代码来源:APIStat.php

示例8: setTableDefinition

 /**
  * Set the table columns
  */
 public function setTableDefinition()
 {
     $this->setTableName('tank_org');
     $this->hasColumn('to_id', 'integer', 4, array('primary' => true, 'autoincrement' => true));
     $this->hasColumn('to_tank_id', 'integer', 4, array('notnull' => true));
     $this->hasColumn('to_org_id', 'integer', 4, array('notnull' => true));
     $this->hasColumn('to_so_status', 'string', 1, array('notnull' => true, 'fixed' => true, 'default' => SrcOrg::$STATUS_OPTED_IN));
     $this->hasColumn('to_so_home_flag', 'boolean', null, array('notnull' => true, 'default' => false));
     parent::setTableDefinition();
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:13,代码来源:TankOrg.php

示例9: setTableDefinition

 /**
  * Setup the table columns
  */
 public function setTableDefinition()
 {
     $this->setTableName('test_related');
     $this->hasColumn('tr_id', 'integer', 4, array('primary' => true, 'autoincrement' => true));
     $this->hasColumn('tr_test_id', 'integer', 4, array('notnull' => true));
     $this->hasColumn('tr_uuid', 'string', 12, array('fixed' => true, 'notnull' => true, 'unique' => true));
     $this->hasColumn('tr_string_1', 'string', 128, array());
     $this->hasColumn('tr_string_2', 'string', 128, array());
     parent::setTableDefinition();
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:13,代码来源:TestRelatedRecord.php

示例10: setTableDefinition

 /**
  * Set the table columns
  */
 public function setTableDefinition()
 {
     $this->setTableName('trackback');
     $this->hasColumn('tb_id', 'integer', 4, array('primary' => true, 'autoincrement' => true));
     $this->hasColumn('tb_src_id', 'integer', 4, array('notnull' => true));
     $this->hasColumn('tb_user_id', 'integer', 4, array('notnull' => true));
     $this->hasColumn('tb_ip', 'integer', 4, array('notnull' => true, 'unsigned' => true));
     $this->hasColumn('tb_dtim', 'timestamp', null, array('notnull' => true));
     parent::setTableDefinition();
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:13,代码来源:Trackback.php

示例11: setTableDefinition

 /**
  * Set the table columns
  */
 public function setTableDefinition()
 {
     $this->setTableName('bin_source');
     $this->hasColumn('bsrc_src_id', 'integer', 4, array('primary' => true));
     $this->hasColumn('bsrc_bin_id', 'integer', 4, array('primary' => true));
     $this->hasColumn('bsrc_notes', 'string', 255, array());
     $this->hasColumn('bsrc_meta', 'string', 255, array());
     $this->hasColumn('bsrc_cre_dtim', 'timestamp', null, array());
     parent::setTableDefinition();
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:13,代码来源:BinSource.php

示例12: setTableDefinition

 /**
  * Set the table columns
  */
 public function setTableDefinition()
 {
     $this->setTableName('translation_map');
     $this->hasColumn('xm_id', 'integer', 4, array('primary' => true, 'autoincrement' => true));
     $this->hasColumn('xm_fact_id', 'integer', 4, array('notnull' => true));
     $this->hasColumn('xm_xlate_from', 'string', 128, array('notnull' => true));
     $this->hasColumn('xm_xlate_to_fv_id', 'integer', 4, array('notnull' => true));
     $this->hasColumn('xm_cre_dtim', 'timestamp', null, array('notnull' => false));
     parent::setTableDefinition();
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:13,代码来源:TranslationMap.php

示例13: setTableDefinition

 /**
  * Set the table columns
  */
 public function setTableDefinition()
 {
     $this->setTableName('src_stat');
     $this->hasColumn('sstat_src_id', 'integer', 4, array('primary' => true, 'autoincrement' => false));
     $this->hasColumn('sstat_export_dtim', 'timestamp', null, array('notnull' => false));
     $this->hasColumn('sstat_contact_dtim', 'timestamp', null, array('notnull' => false));
     $this->hasColumn('sstat_submit_dtim', 'timestamp', null, array('notnull' => false));
     $this->hasColumn('sstat_bh_play_dtim', 'timestamp', null, array('notnull' => false));
     $this->hasColumn('sstat_bh_signup_dtim', 'timestamp', null, array('notnull' => false));
     parent::setTableDefinition();
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:14,代码来源:SrcStat.php

示例14: setTableDefinition

 /**
  * Set the table columns
  */
 public function setTableDefinition()
 {
     $this->setTableName('user_srs');
     $this->hasColumn('usrs_user_id', 'integer', 4, array('primary' => true));
     $this->hasColumn('usrs_srs_id', 'integer', 4, array('primary' => true));
     $this->hasColumn('usrs_read_flag', 'boolean', null, array('notnull' => true, 'default' => false));
     $this->hasColumn('usrs_favorite_flag', 'boolean', null, array('notnull' => true, 'default' => false));
     $this->hasColumn('usrs_cre_dtim', 'timestamp', null, array('notnull' => true));
     $this->hasColumn('usrs_upd_dtim', 'timestamp', null, array());
     parent::setTableDefinition();
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:14,代码来源:UserSrs.php

示例15: setTableDefinition

 /**
  * Set the table columns
  */
 public function setTableDefinition()
 {
     $this->setTableName('user_email_address');
     $this->hasColumn('uem_id', 'integer', 4, array('primary' => true, 'autoincrement' => true));
     $this->hasColumn('uem_uuid', 'string', 12, array('fixed' => true, 'notnull' => true, 'unique' => true));
     $this->hasColumn('uem_user_id', 'integer', 4, array('notnull' => true));
     $this->hasColumn('uem_address', 'string', 255, array('notnull' => true));
     $this->hasColumn('uem_primary_flag', 'boolean', null, array('notnull' => true));
     $this->hasColumn('uem_signature', 'string', null, array());
     parent::setTableDefinition();
 }
开发者ID:kaakshay,项目名称:audience-insight-repository,代码行数:14,代码来源:UserEmailAddress.php


注:本文中的AIR2_Record::setTableDefinition方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。