__construct() public method

The constructor loads the Session class, used to store the shopping cart contents.
public __construct ( $params = [] ) : void
return void
Exemplo n.º 1
0
 public function __construct($params = array())
 {
     parent::__construct();
     $this->CI =& get_instance();
     if (!isset($this->_cart_contents['order_total'])) {
         $this->_cart_contents['order_total'] = 0;
     }
     if (!isset($this->_cart_contents['delivery'])) {
         $this->_cart_contents['delivery'] = 0;
     }
     if (!isset($this->_cart_contents['coupon'])) {
         $this->_cart_contents['coupon'] = $this->coupon_array;
     }
     log_message('info', "Cart Class Initialized");
 }
Exemplo n.º 2
0
 function __construct($config = array())
 {
     parent::__construct($config);
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
 }
Exemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
     $this->product_name_rules = '\\S';
 }
Exemplo n.º 5
0
 function __construct()
 {
     parent::__construct();
     $this->product_name_rules = "\\.\\:\\-_ a-z0-9#Ññ'+´áéíóúÁÉÍÓÚ(),\\/";
 }
Exemplo n.º 6
0
 function __construct()
 {
     parent::__construct();
     $this->product_name_rules = '\\d\\D';
     // hack CI的购物车不支持中文的问题
 }