class CartService

Properties

Application $app

Methods

__construct(Application $app)

No description

setCanAddProductType(ProductType $ProductType)

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

getCanAddProductType()

No description

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

No description

integer
getProductQuantity(string $productClassId)

No description

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

No description

boolean
canAddProduct(string $productClassId)

No description

bool
canAddProductPayment(ProductType $ProductType)

No description

getCart()

No description

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 76
__construct(Application $app)

Parameters

Application $app

at line 102
setCanAddProductType(ProductType $ProductType)

Parameters

ProductType $ProductType

at line 111
save()

at line 116
unlock()

at line 123
lock()

at line 133
bool isLocked()

Return Value

bool

at line 142
CartService setPreOrderId(string $pre_order_id)

Parameters

string $pre_order_id

Return Value

CartService

at line 152
string getPreOrderId()

Return Value

string

at line 160
CartService clear()

Return Value

CartService

at line 170
getCanAddProductType()

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

Parameters

string $productClassId
integer $quantity

Return Value

CartService

at line 193
integer getProductQuantity(string $productClassId)

Parameters

string $productClassId

Return Value

integer

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

Parameters

ProductClass|integer $ProductClass
integer $quantity

Return Value

CartService

Exceptions

CartException

at line 304
boolean canAddProduct(string $productClassId)

Parameters

string $productClassId

Return Value

boolean

at line 319
bool canAddProductPayment(ProductType $ProductType)

Parameters

ProductType $ProductType

Return Value

bool

at line 356
getCart()

at line 410
CartService removeProduct(string $productClassId)

Parameters

string $productClassId

Return Value

CartService

at line 442
CartService addError(string $error = null, string $productName = null)

Parameters

string $error
string $productName

Return Value

CartService

at line 456
CartService upProductQuantity(string $productClassId)

Parameters

string $productClassId

Return Value

CartService

at line 468
CartService downProductQuantity(string $productClassId)

Parameters

string $productClassId

Return Value

CartService

at line 484
array getProductTypes()

Return Value

array

at line 500
string[] getErrors()

Return Value

string[]

at line 508
string[] getMessages()

Return Value

string[]

at line 517
CartService setMessage(string $message)

Parameters

string $message

Return Value

CartService

at line 527
string getError()

Return Value

string

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

Parameters

string $error

Return Value

CartService