本文整理汇总了PHP中Base_Model::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Base_Model::__construct方法的具体用法?PHP Base_Model::__construct怎么用?PHP Base_Model::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Base_Model
的用法示例。
在下文中一共展示了Base_Model::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
function __construct()
{
parent::__construct();
$this->init("anggota", "id", "nomor_anggota");
$this->load->model("pinjaman");
$this->load->model("tabungan");
}
示例2: __construct
public function __construct()
{
$this->db_tablepre = 't_wechat_';
// 不设置默认为t_sys_
$this->table_name = 'config';
parent::__construct();
}
示例3: __construct
/**
* Constructs a Question_Type_Model while setting attribute types.
* @return void
*/
public function __construct()
{
parent::__construct();
//setting attribute types.
settype($this->id, "integer");
settype($this->name, "string");
}
示例4: __construct
public function __construct()
{
$this->db_tablepre = 'ci_';
$this->table_name = 'game_rank';
parent::__construct();
$this->mode_table_name = $this->table_name;
}
示例5: __construct
public function __construct($table = NULL)
{
parent::__construct($table);
if (!empty($table)) {
$this->_idx_table = $table;
/*$this->table = $this->get_table($this->_idx_table);*/
}
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->users_table = "users";
$this->roles_table = "roles";
$this->zones_table = "zones";
$this->areas_table = "areas";
$this->brands_table = "brands";
$this->profiles_table = "profiles";
$this->credit_limit_table = "credit_limit";
}
示例7:
function __construct()
{
parent::__construct();
// Setup allowed tables
$this->load->config('khaos', true, true);
$options = $this->config->item('acl', 'khaos');
$this->_TABLES = $options['tables'];
$this->_TABLES['groups'] = $this->config->item('backendpro_table_prefix') . "groups";
$this->_TABLES['resources'] = $this->config->item('backendpro_table_prefix') . "resources";
// Setup ACO Model
$this->resource = new Nested_sets_model();
$this->resource->setControlParams($this->_TABLES['acos']);
$this->resource->setPrimaryKeyColumn('id');
// Setup ARO Model
$this->group = new Nested_sets_model();
$this->group->setControlParams("n_" . $this->_TABLES['aros']);
$this->group->setPrimaryKeyColumn('id');
log_message('debug', 'BackendPro : Access_control_model class loaded');
}
示例8: __construct
public function __construct()
{
parent::__construct();
$this->loadConnection('default');
$this->logger->write('info', 'model: Agama');
}
示例9: __construct
public function __construct()
{
parent::__construct('article_cat');
}
示例10: __construct
public function __construct()
{
parent::__construct();
$this->table_name = "tb_dep_ru_prohibit";
}
示例11: __construct
public function __construct()
{
$this->table_name = 'member';
parent::__construct();
}
示例12:
function __construct()
{
parent::__construct('transactions', 'datetime');
}
示例13: __construct
public function __construct()
{
parent::__construct();
}
示例14:
function __construct()
{
parent::__construct();
$this->init("user", "id", "user_name");
}
示例15:
function __construct()
{
$this->db_tablepre = 'tb_';
$this->table_name = 'member_role_priv';
parent::__construct();
}