__construct() 공개 메소드

The constructor loads the Session class, used to store the shopping cart contents.
public __construct ( $params = [] ) : void
리턴 void
예제 #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");
 }
예제 #2
0
파일: MY_Cart.php 프로젝트: Rotron/hero
 function __construct($config = array())
 {
     parent::__construct($config);
 }
예제 #3
0
 public function __construct()
 {
     parent::__construct();
 }
예제 #4
0
 public function __construct()
 {
     parent::__construct();
     $this->product_name_rules = '\\S';
 }
예제 #5
0
 function __construct()
 {
     parent::__construct();
     $this->product_name_rules = "\\.\\:\\-_ a-z0-9#Ññ'+´áéíóúÁÉÍÓÚ(),\\/";
 }
예제 #6
0
 function __construct()
 {
     parent::__construct();
     $this->product_name_rules = '\\d\\D';
     // hack CI的购物车不支持中文的问题
 }