• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP CI_model类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中CI_model的典型用法代码示例。如果您正苦于以下问题:PHP CI_model类的具体用法?PHP CI_model怎么用?PHP CI_model使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了CI_model类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16:

 function __construct()
 {
     parent::__construct();
     $this->tableName = "content";
     $this->caption = "content";
     $this->controllerName = "addstories";
     $this->recordsPerPage = 25;
     $this->add = true;
     $this->update = true;
     $this->view = true;
     $this->printView = true;
     $this->delete = true;
     $this->allowQuickSearch = true;
 }
开发者ID:Achalaweerasooriya,项目名称:Achalaweerasooriya.github.io,代码行数:14,代码来源:load_userStory.php


示例17: array

 function __construct()
 {
     parent::__construct();
     // Load Model if tendoo is installed
     if ($this->setup->is_installed()) {
         $this->load->model('users_model', 'users');
     }
     // Events
     // change send administrator emails
     $this->events->add_action('after_app_init', array($this, 'after_session_starts'));
     $this->events->add_action('is_connected', array($this, 'is_connected'));
     $this->events->add_action('log_user_out', array($this, 'log_user_out'));
     $this->events->add_filter('user_id', array($this, 'user_id'));
     // Tendoo Setup
 }
开发者ID:2329697501,项目名称:tendoo-cms,代码行数:15,代码来源:aauth.php


示例18:

 function __construct()
 {
     $this->load->database();
     parent::__construct();
 }
开发者ID:phongpakon35,项目名称:mini-project,代码行数:5,代码来源:book.php


示例19:

 function __construct()
 {
     parent::__construct();
     date_default_timezone_set('America/Los_Angeles');
 }
开发者ID:nbrady-techempower,项目名称:faithwraps,代码行数:5,代码来源:User.php


示例20:

 /**
  * Constructor
  *
  * @uses 	get_settings
  * @return 	void
  */
 function __construct()
 {
     parent::__construct();
     $this->load->database();
     log_message('debug', 'Sub Category Model Initialized');
 }
开发者ID:thanhtq00103,项目名称:QLBH,代码行数:12,代码来源:sub_category_model.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP CIdSante400类代码示例发布时间:2022-05-23
下一篇:
PHP CI_controller类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap