Detailed Description
Basket reservations handler class
Definition at line 7 of file oxbasketreservation.php.
Member Function Documentation
oxBasketReservation::_basketDifference |
( |
oxBasket |
$oBasket | ) |
|
|
protected |
compute difference of reserved amounts vs basket items
- Parameters
-
- Returns
- array
Definition at line 129 of file oxbasketreservation.php.
oxBasketReservation::_getReservationsId |
( |
| ) |
|
|
protected |
oxBasketReservation::_getReservedItems |
( |
| ) |
|
|
protected |
return currently reserved items in an array format array (artId => amount)
- Returns
- array
Definition at line 85 of file oxbasketreservation.php.
oxBasketReservation::_loadReservations |
( |
|
$sBasketId | ) |
|
|
protected |
load reservation or create new reservation oxuserbasket
- Parameters
-
string | $sBasketId | basket id for this userbasket |
- Returns
- oxuserbasket
Definition at line 45 of file oxbasketreservation.php.
oxBasketReservation::_reserveArticles |
( |
|
$aBasketDiff | ) |
|
|
protected |
oxBasketReservation::commitArticleReservation |
( |
|
$sArticleId, |
|
|
|
$dAmount |
|
) |
| |
commit reservation of given article amount deletes this amount from active reservations userBasket, update sold amount
- Parameters
-
string | $sArticleId | article id |
double | $dAmount | amount to use |
- Returns
- null
Definition at line 192 of file oxbasketreservation.php.
oxBasketReservation::discardArticleReservation |
( |
|
$sArticleId | ) |
|
discard one article reservation return the reserved stock to article
- Parameters
-
string | $sArticleId | article id |
- Returns
- null
Definition at line 217 of file oxbasketreservation.php.
oxBasketReservation::discardReservations |
( |
| ) |
|
oxBasketReservation::discardUnusedReservations |
( |
|
$iLimit | ) |
|
periodic cleanup: discards timed out reservations even if they are not for the current user
- Parameters
-
int | $iLimit | limit for discarding (performance related) |
- Returns
- null
Definition at line 255 of file oxbasketreservation.php.
oxBasketReservation::getReservations |
( |
| ) |
|
oxBasketReservation::getReservedAmount |
( |
|
$sArticleId | ) |
|
return currently reserved amount for an article
- Parameters
-
string | $sArticleId | article id |
- Returns
- double
Definition at line 113 of file oxbasketreservation.php.
oxBasketReservation::getTimeLeft |
( |
| ) |
|
oxBasketReservation::renewExpiration |
( |
| ) |
|
oxBasketReservation::reserveBasket |
( |
oxBasket |
$oBasket | ) |
|
Member Data Documentation
oxBasketReservation::$_aCurrentlyReserved = null |
|
protected |
oxBasketReservation::$_oReservations = null |
|
protected |
The documentation for this class was generated from the following file: