__construct() public method

public __construct ( $config = [] )
Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     if ($this->db->where('type', 'cart_total')->get('extensions')->num_rows() <= 0) {
         $this->extension->runMigration('cart_module');
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->library('cart');
     $this->load->library('currency');
     $this->lang->load('authorize_net_aim/authorize_net_aim');
     $this->avsResponse = array('A' => $this->lang->line('text_avs_response_A'), 'B' => $this->lang->line('text_avs_response_B'), 'E' => $this->lang->line('text_avs_response_E'), 'G' => $this->lang->line('text_avs_response_G'), 'N' => $this->lang->line('text_avs_response_N'), 'P' => $this->lang->line('text_avs_response_P'), 'R' => $this->lang->line('text_avs_response_R'), 'S' => $this->lang->line('text_avs_response_S'), 'U' => $this->lang->line('text_avs_response_U'), 'W' => $this->lang->line('text_avs_response_W'), 'X' => $this->lang->line('text_avs_response_X'), 'Y' => $this->lang->line('text_avs_response_Y'), 'Z' => $this->lang->line('text_avs_response_Z'));
     $this->ccvResponse = array('M' => $this->lang->line('text_ccv_response_M'), 'N' => $this->lang->line('text_ccv_response_N'), 'P' => $this->lang->line('text_ccv_response_P'), 'S' => $this->lang->line('text_ccv_response_S'), 'U' => $this->lang->line('text_ccv_response_U'));
     $this->cavvResponse = array('0' => $this->lang->line('text_cavv_response_0'), '1' => $this->lang->line('text_cavv_response_1'), '2' => $this->lang->line('text_cavv_response_2'), '3' => $this->lang->line('text_cavv_response_3'), '4' => $this->lang->line('text_cavv_response_4'), '5' => $this->lang->line('text_cavv_response_5'), '6' => $this->lang->line('text_cavv_response_6'), '7' => $this->lang->line('text_cavv_response_7'), '8' => $this->lang->line('text_cavv_response_8'), '9' => $this->lang->line('text_cavv_response_9'), 'A' => $this->lang->line('text_cavv_response_A'), 'B' => $this->lang->line('text_cavv_response_B'));
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->library('cart');
     $this->load->library('currency');
 }