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


PHP DAO::__construct方法代码示例

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


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

示例1:

 function __construct()
 {
     parent::__construct();
     $this->setTableName('t_nc_facebook');
     $this->setPrimaryKey('pk_fb_api_id');
     $this->setFields(array('pk_fb_api_id', 'fb_api_secret', 'fb_status', 'fb_connection'));
 }
开发者ID:jhalendra,项目名称:classmandu,代码行数:7,代码来源:facebook.class.php

示例2:

 /**
  * Set data related to t_currency table
  */
 function __construct()
 {
     parent::__construct();
     $this->setTableName('t_currency');
     $this->setPrimaryKey('pk_c_code');
     $this->setFields(array('pk_c_code', 's_name', 's_description', 'b_enabled'));
 }
开发者ID:oanav,项目名称:closetshare,代码行数:10,代码来源:Currency.php

示例3:

 /**
  * Set data related to t_country_stats table
  *
  * @access public
  * @since 2.4
  */
 function __construct()
 {
     parent::__construct();
     $this->setTableName('t_country_stats');
     $this->setPrimaryKey('fk_c_country_code');
     $this->setFields(array('fk_c_country_code', 'i_num_items'));
 }
开发者ID:oanav,项目名称:closetshare,代码行数:13,代码来源:CountryStats.php

示例4:

 function __construct()
 {
     parent::__construct();
     $this->setTableName('t_nc_seller_ratings');
     $this->setPrimaryKey('pk_i_seller_id');
     $this->setFields(array('pk_i_seller_id', 'pk_i_user_id', 'vote_given'));
 }
开发者ID:jhalendra,项目名称:classmandu,代码行数:7,代码来源:seller-ratings.class.php

示例5:

 function __construct()
 {
     parent::__construct();
     $this->setTableName('t_nc_mark_as_sold');
     $this->setPrimaryKey('pk_sold_id');
     $this->setFields(array('pk_sold_id'));
 }
开发者ID:jhalendra,项目名称:classmandu,代码行数:7,代码来源:markassold.class.php

示例6:

 function __construct()
 {
     parent::__construct();
     $this->setTableName('t_nc_facebook_user');
     $this->setPrimaryKey('fk_i_user_id');
     $this->setFields(array('fk_i_user_id', 'facebook_user_id'));
 }
开发者ID:jhalendra,项目名称:classmandu,代码行数:7,代码来源:facebookuser.class.php

示例7:

 /**
  * Set data related to t_city_stats table
  *
  * @access public
  * @since 2.4
  */
 function __construct()
 {
     parent::__construct();
     $this->setTableName('t_city_stats');
     $this->setPrimaryKey('fk_i_city_id');
     $this->setFields(array('fk_i_city_id', 'i_num_items'));
 }
开发者ID:oanav,项目名称:closetshare,代码行数:13,代码来源:CityStats.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->MAP_ARR = array("id" => 'id', "username" => 'username', "money" => 'money', "add_time" => 'add_time', "mem" => 'mem');
     $this->MAP_TYPE = array('id' => FIELD_TYPE_AUTO, 'money' => FIELD_TYPE_INT, 'add_time' => FIELD_TYPE_DATETIME);
     $this->_TABLE = DBPRE . 'money_out';
 }
开发者ID:srdc2014,项目名称:vhms,代码行数:7,代码来源:moneyout.dao.php

示例9: array

 function __construct()
 {
     parent::__construct();
     $this->id_column = 'status_id';
     $this->table_fields = array('status_category', 'status_name');
     $this->table = 'statuses';
 }
开发者ID:bnnadi,项目名称:untiltledAPI,代码行数:7,代码来源:StatusDAO.php

示例10: array

 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setTableName('t_latest_searches');
     $array_fields = array('d_date', 's_search');
     $this->setFields($array_fields);
 }
开发者ID:jmcclenon,项目名称:Osclass,代码行数:10,代码来源:LatestSearches.php

示例11: __construct

 /**
  * Set data related to t_alerts_sent table
  */
 public function __construct()
 {
     parent::__construct();
     $this->setTableName('t_alerts_sent');
     $this->setPrimaryKey('d_date');
     $this->setFields(array('d_date', 'i_num_alerts_sent'));
 }
开发者ID:mylastof,项目名称:os-class,代码行数:10,代码来源:AlertsStats.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->MAP_ARR = array("name" => 'name', "value" => 'value');
     $this->MAP_TYPE = array();
     $this->_TABLE = DBPRE . 'setting';
 }
开发者ID:srdc2014,项目名称:vhms,代码行数:7,代码来源:setting.dao.php

示例13: __construct

 /**
  * Set data related to t_item_stats table
  */
 public function __construct()
 {
     parent::__construct();
     $this->setTableName('t_item_stats');
     $this->setPrimaryKey('fk_i_item_id');
     $this->setFields(array('fk_i_item_id', 'i_num_views', 'i_num_spam', 'i_num_repeated', 'i_num_bad_classified', 'i_num_offensive', 'i_num_expired', 'i_num_premium_views', 'dt_date'));
 }
开发者ID:mylastof,项目名称:os-class,代码行数:10,代码来源:ItemStats.php

示例14: array

 /**
  * 
  */
 function __construct()
 {
     parent::__construct();
     $this->setTableName('t_log');
     $array_fields = array('dt_date', 's_section', 's_action', 'fk_i_id', 's_data', 's_ip', 's_who', 'fk_i_who_id');
     $this->setFields($array_fields);
 }
开发者ID:semul,项目名称:Osclass,代码行数:10,代码来源:Log.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     $this->MAP_ARR = array('id' => 'id', 'name' => 'name', 'group_id' => 'group_id', 'upid' => 'upid', 'describe' => 'describe', 'price' => 'price', 'month_flag' => 'month_flag', 'pause_flag' => 'pause_flag', 'show_price' => 'show_price');
     $this->MAP_TYPE = array('id' => FIELD_TYPE_INT | FIELD_TYPE_AUTO, 'group_id' => FIELD_TYPE_INT, 'upid' => FIELD_TYPE_INT, 'price' => FIELD_TYPE_INT, 'month_flag' => FIELD_TYPE_INT, 'pause_flag' => FIELD_TYPE_INT, 'show_price' => FIELD_TYPE_INT);
     $this->_TABLE = 'mproduct';
 }
开发者ID:srdc2014,项目名称:vhms,代码行数:7,代码来源:mproduct.dao.php


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