ePages 7.25.0 - DE_EPAGES/Order/API/BasketCreator.pm

Package DE_EPAGES::Order::API::BasketCreator

Creates a new basket.

Functions

CreateBasket
Transaction
createBasket
new

CreateBasket

Creates a basket for a user and shop.

Syntax
$Basket = CreateBasket($hInfo);
Input
$hInfo
keys
Return
$Basket (object)
basket

Transaction

Runs a code block in a transaction using the current database handle. If an error occurs, the local data cache is reset and the code block $cRollback is executed.

Syntax
Transaction( $cCode, $cRollback );
Input
$cCode (code reference)
code block
$cRollback (code reference)
roll back code block (optional)

createBasket

Creates a new basket.

Syntax
createBasket( $hBasketData );
Input
$Input1 (ref_hash)
Input1Description
Return
(DE_EPAGES::Order::API::Object::Basket)
The created basket

new

Constuctor

Syntax
new($Shop);
Input
$Shop (DE_EPAGES::Shop::API::Object::Shop)
shop
Return
$self (DE_EPAGES::Order::API::BasketCreator)
self