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


PHP Base_Model::__construct方法代码示例

本文整理汇总了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");
 }
开发者ID:ibnoe,项目名称:kosimpin,代码行数:7,代码来源:anggota.php

示例2: __construct

 public function __construct()
 {
     $this->db_tablepre = 't_wechat_';
     // 不设置默认为t_sys_
     $this->table_name = 'config';
     parent::__construct();
 }
开发者ID:wqzgh,项目名称:gt_basic,代码行数:7,代码来源:WeChat_model.php

示例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");
 }
开发者ID:nilupull,项目名称:Advanced_Web_Technology_Coursework_1,代码行数:11,代码来源:Question_Type_Model.php

示例4: __construct

 public function __construct()
 {
     $this->db_tablepre = 'ci_';
     $this->table_name = 'game_rank';
     parent::__construct();
     $this->mode_table_name = $this->table_name;
 }
开发者ID:q546530715,项目名称:ACI-CodeIgnter,代码行数:7,代码来源:Oauth_model.php

示例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);*/
     }
 }
开发者ID:shuai959980629,项目名称:TTDV1,代码行数:8,代码来源:Sharding_model.php

示例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";
 }
开发者ID:ujjalsuttradhar,项目名称:ci_boilerplate_management,代码行数:11,代码来源:user_model.php

示例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');
 }
开发者ID:hungnv0789,项目名称:vhtm,代码行数:19,代码来源:access_control_model.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->loadConnection('default');
     $this->logger->write('info', 'model: Agama');
 }
开发者ID:nmadipati,项目名称:si-ksc,代码行数:6,代码来源:agama_model.php

示例9: __construct

 public function __construct()
 {
     parent::__construct('article_cat');
 }
开发者ID:shuai959980629,项目名称:TTDV1,代码行数:4,代码来源:Article_cat_model.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $this->table_name = "tb_dep_ru_prohibit";
 }
开发者ID:sharpmental,项目名称:prcs,代码行数:5,代码来源:Dep_ru_prohibit_model.php

示例11: __construct

 public function __construct()
 {
     $this->table_name = 'member';
     parent::__construct();
 }
开发者ID:flycorn,项目名称:ACI,代码行数:5,代码来源:Member_model.php

示例12:

 function __construct()
 {
     parent::__construct('transactions', 'datetime');
 }
开发者ID:comp4711-Assignment,项目名称:Assignment,代码行数:4,代码来源:Transactions.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
 }
开发者ID:skubbs-chuck,项目名称:emr,代码行数:4,代码来源:Model_session.php

示例14:

 function __construct()
 {
     parent::__construct();
     $this->init("user", "id", "user_name");
 }
开发者ID:ibnoe,项目名称:kosimpin,代码行数:5,代码来源:user.php

示例15:

 function __construct()
 {
     $this->db_tablepre = 'tb_';
     $this->table_name = 'member_role_priv';
     parent::__construct();
 }
开发者ID:sharpmental,项目名称:prcs,代码行数:6,代码来源:Member_role_priv_model.php


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