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