當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。