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


PHP CI_Model类代码示例

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


在下文中一共展示了CI_Model类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->idLogin = $this->session->userdata('idUserLogin');
     $this->nameUsuario = $this->session->userdata('userNameUsuario');
     $this->campos = array('cod_sede_operativa' => 'local_sede', 'cod_sede_prov' => 'local_sede_provincial', 'cod_sede_dist' => 'local_sede_distrital', 'ccdd' => 'local_departamento', 'ccpp' => 'local_provincia', 'ccdi' => 'local_distrito', 'direccion' => 'local_direccion', 'referencia' => 'local_referencia', 'observacion' => 'local_observacion', 'nombres' => 'local_nombre_funcionario', 'cargo' => 'local_cargo_responsable', 'telef_fijo' => 'local_telefono_fijo', 'telef_celular' => 'local_telefono_celular', 'telef_rpm' => 'local_telefono_rpm', 'email' => 'local_email', 'area' => 'local_area', 'nro_ambiente' => 'local_ambientes', 'area_almacen' => 'local_area_almacen', 'nro_escritorio' => 'local_escritorios', 'nro_mesa' => 'local_mesas', 'nro_silla' => 'local_sillas', 'pc' => 'local_pc', 'tipo' => 'local_tipo_oficina', 'internet' => 'local_internet', 'internet_tipo' => 'local_internet_tipo', 'internet_velocidad' => 'local_internet_velocidad', 'electricidad' => 'local_electricidad', 'sshh' => 'local_sshh', 'tipo_construc' => 'local_tipo', 'seguridad' => 'local_seguridad', 'turnos' => 'local_turnos', 'turnos_presupuesto' => 'local_turnos_presupuesto', 'costos' => 'local_costo_local', 'costos_mantenimiento' => 'local_costo_detalle_mantenimiento', 'costos_internet' => 'local_costo_detalle_internet', 'costos_local' => 'local_costo_detalle_local', 'costos_mobiliario' => 'local_costo_detalle_mobiliario', 'observacion_local' => 'local_observacion_presupuesto', 'tipo_construc' => 'local_tipo', 'gps_latitud' => 'latitud_georeferencia', 'gps_longitud' => 'longitud_georeferencia');
 }
开发者ID:JCdotpe,项目名称:ece,代码行数:7,代码来源:locales_administrativo_model.php

示例2:

 function __construct()
 {
     parent::__construct();
     if (!isset($this->db)) {
         $this->load->database();
     }
 }
开发者ID:gesaodin,项目名称:ipsfa-bss,代码行数:7,代码来源:morden.php

示例3:

 function __construct()
 {
     // Call the Model constructor
     parent::__construct();
     //Load database connection
     $this->load->database();
 }
开发者ID:junctiontech,项目名称:knaworld,代码行数:7,代码来源:Registration_model.php

示例4: __construct

 public function __construct($table_name = '')
 {
     parent::__construct();
     if (!empty($table_name)) {
         $this->_table_name = $table_name;
     }
 }
开发者ID:New7,项目名称:3w,代码行数:7,代码来源:MY_Model.php

示例5: realpath

 function __construct()
 {
     parent::__construct();
     $this->gallery_path = realpath(APPPATH . '../images');
     /*I also can use BASEPATH rather than APPPATH*/
     $this->gallery_path_url = base_url() . 'images/';
 }
开发者ID:koushik0004,项目名称:indiansss,代码行数:7,代码来源:gallery_model.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('cron/cron_task_email_model');
     $this->load->model('cron/report/task_report_model');
     //$this->load->model('admin/evaluate_rule_model');
 }
开发者ID:Vincent-Shen,项目名称:origin,代码行数:7,代码来源:general_template_model.php

示例7:

 function __construct()
 {
     parent::__construct();
     $this->_table = 'reff_jamkesmas';
     //get instance
     $this->CI = get_instance();
 }
开发者ID:lahirwisada,项目名称:sideka,代码行数:7,代码来源:m_jamkesmas.php

示例8: realpath

 function __construct()
 {
     parent::__construct();
     $this->journal_path = realpath(APPPATH . '../');
     /*I also can use BASEPATH rather than APPPATH*/
     $this->journal_path_url = '/';
 }
开发者ID:koushik0004,项目名称:indiansss,代码行数:7,代码来源:journals_model.php

示例9:

 function __construct()
 {
     parent::__construct();
     $this->load->library('tank_auth');
     $this->load->model('common');
     $this->load->model('user/ums_user', 'ums_user');
 }
开发者ID:BellyWong,项目名称:razor,代码行数:7,代码来源:user.php

示例10: __construct

 public function __construct()
 {
     //-----------------------------------------------------------------------
     // constructor
     //-----------------------------------------------------------------------
     parent::__construct();
 }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:7,代码来源:mufield_stats.php

示例11:

 function __construct()
 {
     // Call the Model constructor
     parent::__construct();
     // load encrypt
     $this->load->library('encrypt');
 }
开发者ID:zinzia,项目名称:kapalonline,代码行数:7,代码来源:m_test.php

示例12:

 function __construct()
 {
     // Call the Model constructor
     parent::__construct();
     $this->load->helper('date');
     $this->load->library('sandbox');
 }
开发者ID:johnjoshualipio,项目名称:lcwd_dtms,代码行数:7,代码来源:SD_model.php

示例13: array

	 function __construct()
    {
        // Call the Model constructor
        parent::__construct();
		
		$this->cookie_junk = array('activation_code', 'pay_method', 'state', 'usersource', 'promocode', 'country_from_ip', 'last_login', 'membership_package', 'user_agent', 'free_account', 'profile_type', 'time_created', 'ip', 'expires', 'featured');
    }
开发者ID:bmfelix,项目名称:fanpicks,代码行数:7,代码来源:users.php

示例14: __construct

 /**
  * Class constructor
  *
  * @author Ken Auberry <kenneth.auberry@pnnl.gov>
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->helper(array('item'));
     $this->load->library('EUS', '', 'eus');
     $this->debug = $this->config->item('debug_enabled');
 }
开发者ID:EMSL-MSC,项目名称:pacifica-reporting,代码行数:12,代码来源:Group_info_model.php

示例15:

 function __construct()
 {
     parent::__construct();
     $this->load->helper('directory');
     $this->load->helper('file');
     $this->load->helper('submissions_helper');
 }
开发者ID:agassic,项目名称:BrodySchoolRepo,代码行数:7,代码来源:submissions_model.php


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