class CartService

Constants

PRODUCT_TYPE_NORMAL

PRODUCT_TYPE_DOWNLOAD

Methods

__construct(Session $session, EntityManager $entityManagaer)

No description

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

getCart()

No description

addProduct(string $productClassId, integer $quantity = 1)

No description

integer
getProductQuantity(string $productClassId)

No description

upProductQuantity(string $productClassId)

No description

downProductQuantity(string $productClassId)

No description

setProductQuantity(ProductClass|integer $ProductClass, integer $quantity)

No description

removeProduct(string $productClassId)

No description

string[]
getErrors()

No description

addError(string $error = null)

No description

string[]
getMessages()

No description

setMessage(string $message)

No description

Details

at line 63
__construct(Session $session, EntityManager $entityManagaer)

Parameters

Session $session
EntityManager $entityManagaer

at line 75
save()

at line 80
unlock()

at line 87
lock()

at line 97
bool isLocked()

Return Value

bool

at line 106
CartService setPreOrderId(string $pre_order_id)

Parameters

string $pre_order_id

Return Value

CartService

at line 116
string getPreOrderId()

Return Value

string

at line 124
CartService clear()

Return Value

CartService

at line 134
getCart()

at line 150
CartService addProduct(string $productClassId, integer $quantity = 1)

Parameters

string $productClassId
integer $quantity

Return Value

CartService

at line 162
integer getProductQuantity(string $productClassId)

Parameters

string $productClassId

Return Value

integer

at line 176
CartService upProductQuantity(string $productClassId)

Parameters

string $productClassId

Return Value

CartService

at line 188
CartService downProductQuantity(string $productClassId)

Parameters

string $productClassId

Return Value

CartService

at line 207
CartService setProductQuantity(ProductClass|integer $ProductClass, integer $quantity)

Parameters

ProductClass|integer $ProductClass
integer $quantity

Return Value

CartService

Exceptions

Exception

at line 242
CartService removeProduct(string $productClassId)

Parameters

string $productClassId

Return Value

CartService

at line 252
string[] getErrors()

Return Value

string[]

at line 261
CartService addError(string $error = null)

Parameters

string $error

Return Value

CartService

at line 272
string[] getMessages()

Return Value

string[]

at line 281
CartService setMessage(string $message)

Parameters

string $message

Return Value

CartService