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)

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

Parameters

Application $app

at line 101
setCanAddProductType(ProductType $ProductType)

Parameters

ProductType $ProductType

at line 110
save()

at line 115
unlock()

at line 122
lock()

at line 132
bool isLocked()

Return Value

bool

at line 141
CartService setPreOrderId(string $pre_order_id)

Parameters

string $pre_order_id

Return Value

CartService

at line 151
string getPreOrderId()

Return Value

string

at line 159
CartService clear()

Return Value

CartService

at line 169
getCanAddProductType()

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

Parameters

string $productClassId
integer $quantity

Return Value

CartService

at line 192
integer getProductQuantity(string $productClassId)

Parameters

string $productClassId

Return Value

integer

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

Parameters

ProductClass|integer $ProductClass
integer $quantity

Return Value

CartService

Exceptions

CartException

at line 296
boolean canAddProduct(string $productClassId)

Parameters

string $productClassId

Return Value

boolean

at line 311
bool canAddProductPayment(ProductType $ProductType)

Parameters

ProductType $ProductType

Return Value

bool

at line 348
getCart()

at line 402
CartService removeProduct(string $productClassId)

Parameters

string $productClassId

Return Value

CartService

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

Parameters

string $error

Return Value

CartService

at line 445
CartService upProductQuantity(string $productClassId)

Parameters

string $productClassId

Return Value

CartService

at line 457
CartService downProductQuantity(string $productClassId)

Parameters

string $productClassId

Return Value

CartService

at line 473
array getProductTypes()

Return Value

array

at line 489
string[] getErrors()

Return Value

string[]

at line 497
string[] getMessages()

Return Value

string[]

at line 506
CartService setMessage(string $message)

Parameters

string $message

Return Value

CartService

at line 516
string getError()

Return Value

string

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

Parameters

string $error

Return Value

CartService