コード例 #1
0
ファイル: Cart.php プロジェクト: dextercool/yii2-cart
 /**
  * Checkout cart
  */
 public function checkOut($drop)
 {
     if (!empty($this->storage->db)) {
         $this->storage->lock($drop, $this);
     } else {
         $this->deleteAll();
     }
 }