__construct() public method

Class constructor
public __construct ( ) : void
return void
 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');
 }
Beispiel #2
1
 function __construct()
 {
     parent::__construct();
     if (!isset($this->db)) {
         $this->load->database();
     }
 }
 function __construct()
 {
     // Call the Model constructor
     parent::__construct();
     //Load database connection
     $this->load->database();
 }
Beispiel #4
1
 public function __construct($table_name = '')
 {
     parent::__construct();
     if (!empty($table_name)) {
         $this->_table_name = $table_name;
     }
 }
 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/';
 }
 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');
 }
Beispiel #7
1
 function __construct()
 {
     parent::__construct();
     $this->_table = 'reff_jamkesmas';
     //get instance
     $this->CI = get_instance();
 }
Beispiel #8
1
 function __construct()
 {
     parent::__construct();
     // Load the Database Module REQUIRED for this to work.
     $this->load->database();
     //Without it -> Message: Undefined property: XXXController::$db
 }
 function __construct()
 {
     parent::__construct();
     $this->journal_path = realpath(APPPATH . '../');
     /*I also can use BASEPATH rather than APPPATH*/
     $this->journal_path_url = '/';
 }
Beispiel #10
1
 function __construct()
 {
     parent::__construct();
     $this->load->library('tank_auth');
     $this->load->model('common');
     $this->load->model('user/ums_user', 'ums_user');
 }
 public function __construct()
 {
     //-----------------------------------------------------------------------
     // constructor
     //-----------------------------------------------------------------------
     parent::__construct();
 }
Beispiel #12
0
 function __construct()
 {
     parent::__construct();
     // 连接数据库
     $this->load->database();
     //$this->db = new CI_DB_driver();
 }
Beispiel #13
0
 function __construct()
 {
     // Call the Model constructor
     parent::__construct();
     // load encrypt
     $this->load->library('encrypt');
 }
Beispiel #14
0
 function __construct()
 {
     // Call the Model constructor
     parent::__construct();
     $this->load->helper('date');
     $this->load->library('sandbox');
 }
Beispiel #15
0
	 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');
    }
 /**
  * Class constructor
  *
  * @author Ken Auberry <*****@*****.**>
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->helper(array('item'));
     $this->load->library('EUS', '', 'eus');
     $this->debug = $this->config->item('debug_enabled');
 }
 function __construct()
 {
     parent::__construct();
     $this->load->helper('directory');
     $this->load->helper('file');
     $this->load->helper('submissions_helper');
 }
 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());
 }
Beispiel #19
0
 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());
 }
 function __construct()
 {
     parent::__construct();
     // Your own constructor code
     $this->load->helper('date');
     $this->load->library('email');
 }
 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);
 }
Beispiel #22
0
 function __construct()
 {
     // Call the Model constructor
     parent::__construct();
     $this->load->model('pb_model');
     date_default_timezone_set('Asia/Seoul');
 }
 function __construct()
 {
     parent::__construct();
     $this->table = $this->db->dbprefix('user_creditlocklog');
     $this->userProfileTable = $this->db->dbprefix('user_profile');
     $this->domainTable = $this->db->dbprefix('domain');
 }
Beispiel #24
0
 function __construct()
 {
     parent::__construct();
     // Other stuff
     $this->_prefix = $this->config->item('DX_table_prefix');
     $this->_table = $this->_prefix . $this->config->item('DX_user_temp_table');
 }
Beispiel #25
0
 function __construct()
 {
     parent::__construct();
     //载入wcf通讯类,并重新命名
     $this->load->library("wcf_comm", null, "wcf");
     $this->load->helper('wy_logs_helper');
 }
 function __construct()
 {
     parent::__construct();
     $this->load->database();
     $this->load->library('session');
     $ui = $this->input->get('uid');
     $custID = $this->input->get('cid');
     $cat = $this->input->get('cat');
     $act = $this->input->get('act');
     $page = $this->input->get('page');
     $catid = $this->input->get('catid');
     if (!empty($ui)) {
         $plpID = $ui;
     }
     if ($ui == 0) {
         $plpID = $custID;
     }
     $date = date("Y-m-d");
     if ($cat == 'PROFILE') {
         $val = "SELECT * FROM `recentactivity` WHERE raCategory='{$cat}' AND custID='{$custID}' AND raAction='{$act}' AND `uID`='{$plpID}' ";
     } else {
         $val = "SELECT * FROM `recentactivity` WHERE raCategory='{$cat}' AND custID='{$custID}' AND raAction='{$act}' AND `catID`='{$catid}' ";
     }
     if ($this->db->query($val)->num_rows() < 1) {
         if ($catid != '0') {
             $Like = "INSERT INTO `recentactivity`(raCategory,raAction,catID,custID,uID,raMessage,raPage,is_read,raDate)VALUES('{$cat}','{$act}','{$catid}','{$custID}','{$plpID}','Likes','{$page}',1,'{$date}')";
             $this->db->query($Like);
             $this->log_array = array('pid' => $catid, 'module' => $cat, 'action' => $act, 'table' => 'recentactivity', 'comments' => '');
             $this->Common_model->create_log($this->log_array);
         }
     }
 }
Beispiel #27
0
 function __construct()
 {
     parent::__construct();
     $this->load->library('Datatables');
     $this->load->model('user_model');
     $this->load->model('general_model');
 }
Beispiel #28
0
 function Roles()
 {
     parent::__construct();
     // Other stuff
     $this->_prefix = $this->config->item('wen_table_prefix');
     $this->_table = $this->_prefix . $this->config->item('wen_roles_table');
 }
Beispiel #29
0
 function __construct()
 {
     // call the mdel constructor
     parent::__construct();
     // define table name
     $this->TABLE_NAME = "New_pictures";
 }
Beispiel #30
0
 function __construct()
 {
     parent::__construct();
     $this->_table = 'ref_rp_sumber_dana';
     //get instance
     $this->CI = get_instance();
 }