當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CI_model類代碼示例

本文整理匯總了PHP中CI_model的典型用法代碼示例。如果您正苦於以下問題:PHP CI_model類的具體用法?PHP CI_model怎麽用?PHP CI_model使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了CI_model類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model("Address_model", "address");
     $this->load->model("Contact_model", "contact");
     $this->load->model("Entity_tag_model", "entity_tag");
 }
開發者ID:gamanox,項目名稱:keypanel,代碼行數:10,代碼來源:Entity_model.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->db = $this->load->database('default', TRUE);
     $this->tablename = "customers";
     $this->viewname = "view_customers";
 }
開發者ID:rxlisbest,項目名稱:stock,代碼行數:7,代碼來源:customer_model.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_db_read = $this->load->database('default', TRUE);
     $this->_db_write = $this->load->database('gtwo', TRUE);
     $this->setTablePre();
 }
開發者ID:zydj333,項目名稱:hualiangcaifu,代碼行數:7,代碼來源:MY_Model+-+副本.php

示例4: array

 function __construct()
 {
     parent::__construct();
     // load custom config
     $this->events->add_action('after_app_init', array($this, 'before_session_starts'));
     $this->events->add_action('tendoo_settings_tables', array($this, 'set_tables'));
     $this->events->add_action('before_dashboard_menus', array($this, 'before_dashboard_menus'), 1);
 }
開發者ID:2329697501,項目名稱:tendoo-cms,代碼行數:8,代碼來源:main.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $this->init();
     $this->load->library('WxService');
     $this->load->model('bind_model', 'bind');
     $this->load->model('user_model', 'user');
 }
開發者ID:shuai959980629,項目名稱:TTDV1,代碼行數:8,代碼來源:Wxtemplate_msg_model.php

示例6:

 function __construct()
 {
     $this->version = '1.0';
     parent::__construct();
     if (!$this->__is_installed()) {
         $this->__install_tables();
     }
 }
開發者ID:eboominathan,項目名稱:tendoo-cms,代碼行數:8,代碼來源:setup.php

示例7:

 function __construct()
 {
     parent::__construct();
     $this->cached = $this->config->item('cached');
     if ($this->cached) {
         $this->load->library('cache_util');
     }
 }
開發者ID:nicefirework,項目名稱:upble,代碼行數:8,代碼來源:posts.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('keyword_model', 'keyword');
     $this->load->model('keyword_list_model', 'keyword_list');
     $this->load->model('material_model', 'material');
     $this->load->model('material_text_model', 'material_txt');
     $this->load->model('material_img_model', 'material_img');
 }
開發者ID:shuai959980629,項目名稱:TTDV1,代碼行數:9,代碼來源:Autoaply_model.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->database();
     $this->load->library('session');
     $this->load->library('encrypt');
     //$this->load->helper('url');
     $this->load->library('session');
 }
開發者ID:alonsoat,項目名稱:Incidencias,代碼行數:9,代碼來源:User_Model.php

示例10: array

 function __construct()
 {
     $this->version = '1.0';
     parent::__construct();
     $this->events->add_action('after_app_init', array($this, 'loader'));
     $this->events->add_action('tendoo_settings_tables', function () {
         Modules::enable('post_type');
     });
 }
開發者ID:2329697501,項目名稱:tendoo-cms,代碼行數:9,代碼來源:post_type.php

示例11: __construct

 /**
  * Class constructor
  *
  * @return	void
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->helper('url');
     $this->load->helper('file');
     $this->load->model('Database');
     $this->DeleteOldSessions();
     $this->Database->AddUser();
     return;
 }
開發者ID:zsebtanar,項目名稱:zsebtanar_v4,代碼行數:15,代碼來源:Session.php

示例12: __contruct

 public function __contruct()
 {
     parent::__contruct();
     /*
     			$this->MaTuyen= $mc;
     $this->MaChuyen= $mt;
     $this->BienSo= $BienSo;
     $this->ThoiGianKhoiHanh= $thoigian;
     */
 }
開發者ID:phuongtai,項目名稱:Git.SGB,代碼行數:10,代碼來源:tuyenxe_model.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     if (empty($this->session->userdata['language'])) {
         $this->session->set_userdata('language', 'english');
     }
     $this->language = '_' . $this->session->userdata['language'];
     if ($this->session->userdata['language'] == 'english') {
         $this->language = '';
     }
 }
開發者ID:Mahajyothis,項目名稱:Version1.0-Git,代碼行數:11,代碼來源:Category_model.php

示例14: __construct

 public function __construct($direction = '', $question = '', $option_1 = '', $option_2 = '', $option_3 = '', $option_4 = '', $option_5 = '', $cr_option = 99)
 {
     parent::__construct();
     $this->direction = $direction;
     $this->question = $question;
     $this->option_1 = $option_1;
     $this->option_2 = $option_2;
     $this->option_3 = $option_3;
     $this->option_4 = $option_4;
     $this->option_5 = $option_5;
     $this->cr_option = $cr_option;
 }
開發者ID:sumitkrsaha,項目名稱:finna-be-bugfixes,代碼行數:12,代碼來源:question_with_direction.php

示例15: array

 function __construct()
 {
     parent::__construct();
     $this->events->add_action('do_register_user', array($this, 'register_user'));
     $this->events->add_action('do_send_recovery', array($this, 'change_auth_settings'));
     $this->events->add_action('do_send_recovery', array($this, 'recovery_email'));
     $this->events->add_action('do_login', array($this, 'tendoo_login'));
     $this->events->add_action('do_reset_user', array($this, 'do_reset_user'));
     $this->events->add_action('do_verify_user', array($this, 'do_verify_user'));
     $this->events->add_action('do_remove_module', array($this, 'module_access'), 1, 1);
     $this->events->add_action('do_disable_module', array($this, 'module_access'), 1, 1);
     $this->events->add_action('do_enable_module', array($this, 'module_access'), 1, 1);
 }
開發者ID:2329697501,項目名稱:tendoo-cms,代碼行數:13,代碼來源:actions.php


注:本文中的CI_model類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。