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

string
getError()

No description

setError(string $error = null)

No description

Details

at line 67
__construct(Session $session, EntityManager $entityManager)

Parameters

Session $session
EntityManager $entityManager

at line 90
save()

at line 95
unlock()

at line 102
lock()

at line 112
bool isLocked()

Return Value

bool

at line 121
CartService setPreOrderId(string $pre_order_id)

Parameters

string $pre_order_id

Return Value

CartService

at line 131
string getPreOrderId()

Return Value

string

at line 139
CartService clear()

Return Value

CartService

at line 149
getCart()

at line 180
boolean canAddProduct(string $productClassId)

Parameters

string $productClassId

Return Value

boolean

at line 191
setCanAddProductType(ProductType $ProductType)

Parameters

ProductType $ProductType

at line 200
getCanAddProductType()

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

Parameters

string $productClassId
integer $quantity

Return Value

CartService

at line 223
integer getProductQuantity(string $productClassId)

Parameters

string $productClassId

Return Value

integer

at line 237
CartService upProductQuantity(string $productClassId)

Parameters

string $productClassId

Return Value

CartService

at line 249
CartService downProductQuantity(string $productClassId)

Parameters

string $productClassId

Return Value

CartService

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

Parameters

ProductClass|integer $ProductClass
integer $quantity

Return Value

CartService

Exceptions

CartException

at line 309
CartService removeProduct(string $productClassId)

Parameters

string $productClassId

Return Value

CartService

at line 319
string[] getErrors()

Return Value

string[]

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

Parameters

string $error

Return Value

CartService

at line 339
string[] getMessages()

Return Value

string[]

at line 348
CartService setMessage(string $message)

Parameters

string $message

Return Value

CartService

at line 358
string getError()

Return Value

string

at line 367
CartService setError(string $error = null)

Parameters

string $error

Return Value

CartService