This class object is the super class that every library in CodeIgniter will be assigned to.
Author: ExpressionEngine Dev Team
Beispiel #1
0
 public static function get_CI()
 {
     if (Yupii::$CI == NULL) {
         $f = CI_Controller::get_instance();
         if ($f == NULL) {
             $f = new CI_Controller();
         }
         Yupii::$CI = $f->get_instance();
     }
     return Yupii::$CI;
 }
Beispiel #2
0
 public function __construct()
 {
     parent::__construct();
     parse_str($_SERVER['QUERY_STRING'], $_REQUEST);
     $this->load->library('facebook', array("appId" => '361675743907292', "secret" => '65346749b5c11d2842b322bcc99f247e'));
     $this->user = $this->facebook->getUser();
 }
Beispiel #3
0
 function __construct()
 {
     parent::__construct();
     $this->load->helper('url');
     $this->load->Model('common');
     $this->load->Model('product/productmodel', 'product');
 }
Beispiel #4
0
 /**
  * Index Page for this controller.
  * 
  */
 function __construct()
 {
     parent::__construct();
     $this->load->model('product');
     $this->load->model('product_category');
     $this->load->model('product_brand');
 }
Beispiel #5
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Periodo_model', 'periodos');
     $this->load->library('session');
     $this->load->database();
 }
Beispiel #6
0
 public function __construct()
 {
     parent::__construct();
     if (!$this->session->userdata('logged_in') && $this->session->userdata('privilege') != 'administrator') {
         redirect('beranda');
     }
 }
Beispiel #7
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('user_model');
     $this->load->model('todo_model');
     $this->load->model('note_model');
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->model('achievements_and_rewards_model');
     $this->load->model('user_achievements_rewards_model');
     $this->load->model('userinfo_model');
 }
Beispiel #9
0
 public function __construct()
 {
     # code...
     parent::__construct();
     $this->load->helper(array('form', 'url'));
     $this->load->model('project_model');
 }
Beispiel #10
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library(array('form_validation', 'session', 'template_admin', 'template_icon', 'tambahan_fungsi', 'cek_session'));
     $this->cek_session->cek_login();
     $this->m_checking->module("Contest", "module8", FALSE, TRUE, "home");
 }
Beispiel #11
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Payment_model');
     $this->load->model('Reservation_model');
     $this->load->model('Po_model');
 }
Beispiel #12
0
 function __construct()
 {
     parent::__construct();
     $this->load->helper(array('form', 'url'));
     $this->load->library('session');
     $this->load->library('myutil');
 }
Beispiel #13
0
 public function __construct()
 {
     parent::__construct();
     // Define model
     $this->load->model("Survey_model");
     // $this->output->enable_profiler();
 }
Beispiel #14
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('sistema/configuracaomodel', 'configuracaoModel');
     $this->load->model('sistema/loginmodel', 'loginModel');
     $this->loginModel->logged();
 }
Beispiel #15
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Ativo_model', 'ativo');
     $this->load->model('Localizacao_model', 'loc');
     $this->load->model('Teste_model', 'teste');
 }
Beispiel #16
0
 public function __construct()
 {
     parent::__construct();
     $this->user_id = $this->user_session->getUserId();
     $this->valid_logged_in = $this->user_session->isValidLoggedIn();
     $this->logged_in = $this->user_session->isLoggedIn();
 }
Beispiel #17
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper(array('url', 'form'));
     $this->load->model('login_model');
     $this->load->database('default');
 }
Beispiel #18
0
 function __construct()
 {
     parent::__construct();
     $this->load->library('pagination');
     $this->load->model('m_surveyor');
     $this->load->model('m_lhs');
 }
Beispiel #19
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('MenuModel');
     $this->load->model('ContactModel');
     $this->load->model('EmailModel');
 }
Beispiel #20
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Student_Model');
     $this->load->model('Kelas_Model');
     $this->load->model('Harga_Model');
 }
Beispiel #21
0
 function __construct()
 {
     parent::__construct();
     $this->Lang_model->loadLang('admin');
     $this->load->helper('file');
     $this->load->model('Purview_model');
 }
Beispiel #22
0
 public function __construct()
 {
     parent::__construct();
     // To use site_url and redirect on this controller.
     $this->load->helper('url');
     $this->load->library('session');
 }
 function __construct()
 {
     parent::__construct();
     /** 
      * Forensics Profiler
      *
      * Enable or disable the forensics profiler.
      */
     // $this->output->enable_profiler(false);
     $this->output->enable_profiler(true);
     /** 
      * ChromePhp
      *
      * If class is not auto-loaded, you have to load it here.
      */
     //$this->load->library('ChromePhp');
     /**
      * ChromePhp
      *
      * This will allow you to specify a path on disk and a uri to access
      * a static file that can store json. This allows you to log data
      * that is more than 4k.
      */
     $this->chromephp->useFile('/home/norman/htdocs/livesets.de/logs/chromelogs', '/data/chromelogs');
 }
Beispiel #24
0
 function __construct()
 {
     parent::__construct();
     $this->access->is_logged_in();
     $this->load->helper('form');
     $this->load->model('m_master_atk', 'mdl', true);
 }
Beispiel #25
0
 /**
  * Index Page for this controller.
  *
  * Maps to the following URL
  * 		http://example.com/index.php/welcome
  *	- or -
  * 		http://example.com/index.php/welcome/index
  *	- or -
  * Since this controller is set as the default controller in
  * config/routes.php, it's displayed at http://example.com/
  *
  * So any other public methods not prefixed with an underscore will
  * map to /index.php/welcome/<method_name>
  * @see https://codeigniter.com/user_guide/general/urls.html
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->library('session');
     $this->load->library('encrypt');
     $this->load->model('mlogin');
 }
Beispiel #26
0
 /**
  * Index Page for this controller.
  *
  * Maps to the following URL
  * 		http://example.com/index.php/welcome
  *	- or -  
  * 		http://example.com/index.php/welcome/index
  *	- or -
  * Since this controller is set as the default controller in 
  * config/routes.php, it's displayed at http://example.com/
  *
  * So any other public methods not prefixed with an underscore will
  * map to /index.php/welcome/<method_name>
  * @see http://codeigniter.com/user_guide/general/urls.html
  */
 function __construct()
 {
     parent::__construct();
     $this->load->library('session');
     $this->load->library('encrypt');
     // Si la sesion no tiene datos, redireccionarlo fuera del sistema
     $ci_session = $this->session->userdata('username');
     if (empty($ci_session) === TRUE) {
         redirect(base_url('entrar'));
     }
     // Se Definen constantes para facilitar la programacion
     define("SUPERROL", 1);
     // "SuperAdministrador"
     define('ROL', $this->session->userdata('rol'));
     define('COMPONENTE', $this->uri->segment(1));
     define('USER', $this->session->userdata('username'));
     //
     $this->load->model('permisos_model');
     $this->load->model('tbl_empleado_crud_model');
     $this->load->model('tbl_internet_crud_model');
     $this->load->model('tbl_roles_model');
     /*
      * Tabla de Roles:
      * 1.- Super Administrador
      * 2.- Administrador
      * 3.- Capturista
      */
 }
Beispiel #27
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper(array('url', 'form', 'html'));
     $this->load->library(array('form_validation', 'session'));
     $this->load->model('Log_model', '', TRUE);
 }
Beispiel #28
0
 function __construct()
 {
     parent::__construct();
     $this->controller = strtolower(get_class($this));
     $this->load->model('Algorithm_quality');
     $this->load->model('Implementation');
 }
Beispiel #29
0
 public function __construct()
 {
     parent::__construct();
     $this->load->database();
     $this->load->helper('url');
     $this->load->library('grocery_CRUD');
 }
 function __construct()
 {
     parent::__construct();
     $this->load->model("model_level_menu_access");
     $this->load->model("model_menu");
     ///constructor yang dipanggil ketika memanggil ro.php untuk melakukan pemanggilan pada model : ro.php yang ada di folder models
 }