class CartService

Methods

__construct(Session $session, EntityManager $entityManager)

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

boolean
canAddProduct(string $productClassId)

No description

setCanAddProductType(ProductType $ProductType)

No description

getCanAddProductType()

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 62
__construct(Session $session, EntityManager $entityManager)

Parameters

Session $session
EntityManager $entityManager

at line 83
save()

at line 88
unlock()

at line 95
lock()

at line 105
bool isLocked()

Return Value

bool

at line 114
CartService setPreOrderId(string $pre_order_id)

Parameters

string $pre_order_id

Return Value

CartService

at line 124
string getPreOrderId()

Return Value

string

at line 132
CartService clear()

Return Value

CartService

at line 142
getCart()

at line 159
boolean canAddProduct(string $productClassId)

Parameters

string $productClassId

Return Value

boolean

at line 170
setCanAddProductType(ProductType $ProductType)

Parameters

ProductType $ProductType

at line 179
getCanAddProductType()

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

Parameters

string $productClassId
integer $quantity

Return Value

CartService

at line 202
integer getProductQuantity(string $productClassId)

Parameters

string $productClassId

Return Value

integer

at line 216
CartService upProductQuantity(string $productClassId)

Parameters

string $productClassId

Return Value

CartService

at line 228
CartService downProductQuantity(string $productClassId)

Parameters

string $productClassId

Return Value

CartService

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

Parameters

ProductClass|integer $ProductClass
integer $quantity

Return Value

CartService

Exceptions

CartException

at line 288
CartService removeProduct(string $productClassId)

Parameters

string $productClassId

Return Value

CartService

at line 298
string[] getErrors()

Return Value

string[]

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

Parameters

string $error

Return Value

CartService

at line 318
string[] getMessages()

Return Value

string[]

at line 327
CartService setMessage(string $message)

Parameters

string $message

Return Value

CartService