DMSCartBackendInterface
interface DMSCartBackendInterface (View source)
Interface DMSCartBackendInterface represents the contract for a Session Backend
Methods
public
public
public
removeItemByID(int $itemID)
Removes a DMSRequestItem from the cart by it's id
public
setBackUrl(string $backURL)
Set the backURL to be a Session variable for the current Document Cart
public
setReceiverInfo(array $receiverInfo = array())
Sets the recipients information
Details
array
getItems()
Get all the DMSRequestItem objects serialized in the cart.
DMSRequestItem|bool
getItem(int $id)
Returns a single element from the items list
DMSCartBackendInterface
addItem(DMSRequestItem $item)
Add an DMSRequestItem object into the cart.
DMSCartBackendInterface
removeItem(DMSRequestItem $item)
Remove a DMSRequestItem object from the cart.
DMSCartBackendInterface
removeItemByID(int $itemID)
Removes a DMSRequestItem from the cart by it's id
DMSCartBackendInterface
emptyCart()
Flushes the cart
DMSCartBackendInterface
setBackUrl(string $backURL)
Set the backURL to be a Session variable for the current Document Cart
string
getBackUrl()
Returns the backURL for the current Document Cart
DMSCartBackendInterface
setReceiverInfo(array $receiverInfo = array())
Sets the recipients information
array
getReceiverInfo()
Retrieves the recipients info