本文整理汇总了PHP中CI_Model类的典型用法代码示例。如果您正苦于以下问题:PHP CI_Model类的具体用法?PHP CI_Model怎么用?PHP CI_Model使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CI_Model类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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 <[email protected]>
*/
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
示例16: __construct
public function __construct()
{
parent::__construct();
$this->load->library('analytics', array('username' => $this->settings->ga_email, 'password' => $this->settings->ga_password));
$this->analytics->setProfileById('ga:' . $this->settings->ga_profile_id);
$this->set_month(time());
}
开发者ID:mamtasingh87,项目名称:bytecode,代码行数:7,代码来源:google_analytics_model.php
示例17: __construct
public function __construct()
{
parent::__construct();
// PHP 5.3 ask for timezone, and throw a warning whenever it is not available
// so, just give this one :)
$timezone = @date_default_timezone_get();
if (!isset($timezone) || $timezone == '') {
$timezone = @ini_get('date.timezone');
}
if (!isset($timezone) || $timezone == '') {
$timezone = 'UTC';
}
date_default_timezone_set($timezone);
// load helpers and libraries
$this->load->helper('url');
$this->load->helper('html');
$this->load->helper('form');
$this->load->helper('string');
$this->load->library('user_agent');
$this->load->driver('session');
$this->load->helper('cms_helper');
$this->load->library('form_validation');
$this->load->database();
// accessing file is faster than accessing database
// but I think accessing variable is faster than both of them
$this->__cms_model_properties = array('session' => array(), 'language_dictionary' => array(), 'config' => array());
}
开发者ID:heruprambadi,项目名称:simpeg,代码行数:27,代码来源:MY_Model.php
示例18:
function __construct()
{
parent::__construct();
$this->db = $this->load->database("adminDB", TRUE);
$this->_config = (object) $this->config->item("api");
$this->_vconn = (object) $this->config->item("vdriver");
// bootstrap the adminui virtual client connection
$this->_vconn->client["dbprefix"];
$this->_vconn->client["pconnect"];
$this->_vconn->client["db_debug"];
$this->_vconn->client["cache_on"];
$this->_vconn->client["cachedir"];
$this->_vconn->client["char_set"];
$this->_vconn->client["dbcollat"];
$this->_vconn->client["autoinit"];
$this->_vconn->client["stricton"];
// bootstrap the rest server connection
$this->_vconn->server['hostname'];
$this->_vconn->server["username"];
$this->_vconn->server["password"];
$this->_vconn->server["database"];
$this->_vconn->server["dbdriver"];
$this->_vconn->server["dbprefix"];
$this->_vconn->server["pconnect"];
$this->_vconn->server["db_debug"];
$this->_vconn->server["char_set"];
$this->_vconn->server["dbcollat"];
$this->_vconn->server["autoinit"];
$this->_vconn->server["stricton"];
// bootstrap the rest server connection
$this->restdb = $this->load->database($this->_vconn->server, TRUE);
}
开发者ID:AlpheusTech,项目名称:Quarry-Admin,代码行数:32,代码来源:token_model.php
示例19:
function __construct()
{
// Call the Model constructor
parent::__construct();
$this->load->model('pb_model');
date_default_timezone_set('Asia/Seoul');
}
开发者ID:kimjbrandon,项目名称:restAPI,代码行数:7,代码来源:comment_model.php
示例20:
function __construct()
{
parent::__construct();
$this->table = $this->db->dbprefix('user_creditlocklog');
$this->userProfileTable = $this->db->dbprefix('user_profile');
$this->domainTable = $this->db->dbprefix('domain');
}
开发者ID:hetykai,项目名称:domain_auction,代码行数:7,代码来源:user_creditlocklog_model.php
注:本文中的CI_Model类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论