本文整理汇总了PHP中Base_model::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Base_model::__construct方法的具体用法?PHP Base_model::__construct怎么用?PHP Base_model::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Base_model
的用法示例。
在下文中一共展示了Base_model::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
$this->load->model('loan_model', 'loan');
$this->load->model('task_flow_model', 'task_flow');
$this->load->model('Loan_item_model', 'loan_item');
}
示例2: __construct
/**
* Model Constructor
*
* @access public
*/
public function __construct()
{
parent::__construct();
$this->set_table('article');
$this->set_pk_name('id_article');
$this->set_lang_table('article_lang');
}
示例3:
function __construct()
{
parent::__construct();
$this->load->library(array('contentfactory'));
$this->config->load('position', true);
$this->position = $this->config->item('position', 'position');
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->table_name = 'admin';
$this->id_name = 'auid';
$this->me = $this->check_login();
}
示例5: __construct
public function __construct()
{
parent::__construct();
$this->load->model('tag_model');
$this->table_name = 'problem';
$this->me = $this->user_model->check_login();
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->load->model('tag_model');
$this->load->model('user_model');
$this->table_name = 'problem_detail';
}
示例7: __construct
/**
* Model Constructor
*
* @access public
*/
public function __construct()
{
$this->set_table($this->_author_table);
$this->set_lang_table($this->_author_lang_table);
$this->set_pk_name('id_author');
parent::__construct();
}
示例8: array
function __construct()
{
parent::__construct();
$this->_prefix = $this->config->item('backendpro_table_prefix');
$this->_TABLES = array('Users' => $this->_prefix . 'users', 'UserProfiles' => $this->_prefix . 'user_profiles');
log_message('debug', 'BackendPro : User_model class loaded');
}
示例9: __construct
/**
* Constructor
*
* @access public
*/
public function __construct()
{
parent::__construct();
// Extend Fields definition tables
$this->set_table('extend_field_type');
$this->set_pk_name('id_extend_field_type');
}
示例10: __construct
public function __construct()
{
parent::__construct('recharge_order');
$this->load->model('User_model', 'usermodel');
$this->load->model('User_info_model', 'User_info');
$this->load->model('Borrow_model', 'borrow');
}
示例11: array
function __construct()
{
parent::__construct();
$table = 'omc_languages';
$this->_TABLES = array( 'Langs' => 'omc_languages',
);
}
示例12: __construct
public function __construct()
{
parent::__construct();
$this->set_table('setting');
$this->set_pk_name('id_setting');
$this->load->helper('path_helper');
}
示例13: __construct
public function __construct()
{
parent::__construct();
if (!isset($this->CI->product_model)) {
$this->CI->load->model('product_model');
}
}
示例14: __construct
/**
* Constructor
*
* @access public
*/
public function __construct()
{
parent::__construct();
$this->table = 'users';
$this->pk_name = 'id_user';
$this->meta_table = 'users_meta';
}
示例15: __construct
/**
* Constructor
*
* @access public
*/
public function __construct()
{
parent::__construct();
$this->table = 'media';
$this->pk_name = 'id_media';
$this->lang_table = 'media_lang';
}