本文整理汇总了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'));
}
示例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'));
}
示例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'));
}
示例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'));
}
示例5:
function __construct()
{
parent::__construct();
$this->setTableName('t_nc_mark_as_sold');
$this->setPrimaryKey('pk_sold_id');
$this->setFields(array('pk_sold_id'));
}
示例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'));
}
示例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'));
}
示例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';
}
示例9: array
function __construct()
{
parent::__construct();
$this->id_column = 'status_id';
$this->table_fields = array('status_category', 'status_name');
$this->table = 'statuses';
}
示例10: array
/**
*
*/
function __construct()
{
parent::__construct();
$this->setTableName('t_latest_searches');
$array_fields = array('d_date', 's_search');
$this->setFields($array_fields);
}
示例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'));
}
示例12: __construct
public function __construct()
{
parent::__construct();
$this->MAP_ARR = array("name" => 'name', "value" => 'value');
$this->MAP_TYPE = array();
$this->_TABLE = DBPRE . 'setting';
}
示例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'));
}
示例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);
}
示例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';
}