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