/**
  * @param string $model
  *
  * @return mixed
  */
 function Model($model = 'codefight', $config = FALSE)
 {
     if (!is_object('MY_Model')) {
         include_once APPPATH . DS . 'core' . DS . 'MY_Model.php';
     }
     //$CI =& get_instance();
     $MY_Model = new MY_Model();
     //$CI->model('MY_Model');
     return $MY_Model->Model($model, $config);
     //return $MY_Model->Model($model);
 }
Beispiel #2
0
 public function __construct()
 {
     parent::Model();
     $this->F[1][4][0.05] = 7.71;
     $this->F[1][8][0.05] = 5.32;
     $this->F[1][12][0.05] = 4.75;
     $this->F[1][16][0.05] = 4.49;
     $this->F[1][24][0.05] = 4.46;
     $this->F[1][32][0.05] = 4.17;
     $this->F[1][48][0.05] = 4.08;
     $this->F[1][64][0.05] = 4;
     $this->F[1][96][0.05] = 3.94;
     $this->T[0.025][4] = 2.7765;
     $this->T[0.025][8] = 2.306;
     $this->T[0.025][12] = 2.1788;
     $this->T[0.025][16] = 2.1199;
     $this->T[0.025][24] = 2.0639;
     $this->T[0.025][32] = 2.0369;
     $this->T[0.025][48] = 2.0106;
     $this->T[0.025][64] = 1.9977;
     $this->T[0.025][96] = 1.985;
 }
Beispiel #3
0
 function Entries()
 {
     parent::Model();
     $this->loadTable('entries');
 }
Beispiel #4
0
 function xLogModel()
 {
     parent::Model();
     $this->table = 'XLog';
 }
Beispiel #5
0
 function Awards()
 {
     parent::Model();
     $this->loadTable('awards');
 }
Beispiel #6
0
 function __construct()
 {
     parent::Model();
 }
Beispiel #7
0
 function Accounts()
 {
     parent::Model();
     $this->loadTable('accounts');
 }
Beispiel #8
0
 function Services()
 {
     parent::Model();
     $this->loadTable('services');
 }