CartService
class CartService
Properties
Application | $app |
Methods
loadProductClassFromCart()
カートに保存されている商品の ProductClass エンティティを読み込み、カートへ設定します。
save()
No description
unlock()
No description
lock()
No description
bool
isLocked()
No description
setPreOrderId(string $pre_order_id)
No description
string
getPreOrderId()
No description
clear()
No description
getCanAddProductType()
No description
addProduct(string $productClassId, integer $quantity = 1)
No description
integer
getProductQuantity(string $productClassId)
No description
boolean
canAddProduct(string $productClassId)
No description
bool
removeProduct(string $productClassId)
No description
addError(string $error = null, string $productName = null)
No description
upProductQuantity(string $productClassId)
No description
downProductQuantity(string $productClassId)
No description
array
getProductTypes()
No description
string[]
getErrors()
No description
string[]
getMessages()
No description
setMessage(string $message)
No description
string
getError()
No description
setError(string $error = null)
No description
Details
at line 77
__construct(Application $app)
at line 97
protected
loadProductClassFromCart()
カートに保存されている商品の ProductClass エンティティを読み込み、カートへ設定します。
at line 117
protected
loadProductClassFromCartItem(CartItem $CartItem)
CartItem に対応する ProductClass を設定します。
at line 131
setCanAddProductType(ProductType $ProductType)
at line 140
save()
at line 145
unlock()
at line 152
lock()
at line 162
bool
isLocked()
at line 171
CartService
setPreOrderId(string $pre_order_id)
at line 181
string
getPreOrderId()
at line 189
CartService
clear()
at line 199
getCanAddProductType()
at line 210
CartService
addProduct(string $productClassId, integer $quantity = 1)
at line 222
integer
getProductQuantity(string $productClassId)
at line 238
CartService
setProductQuantity(ProductClass|integer $ProductClass, integer $quantity)
at line 344
boolean
canAddProduct(string $productClassId)
at line 364
bool
canAddProductPayment(ProductType $ProductType)
at line 406
Cart
getCart()
カートを取得します。