OXID eShop CE
6.1.5
|
Public Member Functions | |
setRemainingAmount ($iRemainingAmount) | |
getRemainingAmount () | |
setBasketIndex ($sBasketIndex) | |
getBasketIndex () | |
getString () | |
getValues () | |
setDestination ($sDestination) | |
Protected Attributes | |
$type = 'oxOutOfStockException' | |
Private Attributes | |
$_iRemainingAmount = 0 | |
$_sBasketIndex = null | |
exception class for an article which is out of stock
OxidEsales\EshopCommunity\Core\Exception\OutOfStockException::getBasketIndex | ( | ) |
The basketindex of the faulty article
OxidEsales\EshopCommunity\Core\Exception\OutOfStockException::getRemainingAmount | ( | ) |
Amount of articles left
OxidEsales\EshopCommunity\Core\Exception\OutOfStockException::getString | ( | ) |
Get string dump Overrides oxException::getString()
OxidEsales\EshopCommunity\Core\Exception\OutOfStockException::getValues | ( | ) |
Creates an array of field name => field value of the object. To make a easy conversion of exceptions to error messages possible. Should be extended when additional fields are used! Overrides oxException::getValues()
OxidEsales\EshopCommunity\Core\Exception\OutOfStockException::setBasketIndex | ( | $sBasketIndex | ) |
Sets the basket index for the article
string | $sBasketIndex | Basket index for the faulty article |
OxidEsales\EshopCommunity\Core\Exception\OutOfStockException::setDestination | ( | $sDestination | ) |
Defines a name of the view variable containing the messages. Currently it checks if destination value is set, and if not - overrides default error message with:
$this->getMessage(). $this->getRemainingAmount()
It is necessary to display correct stock error message on any view (except basket).
string | $sDestination | name of the view variable |
OxidEsales\EshopCommunity\Core\Exception\OutOfStockException::setRemainingAmount | ( | $iRemainingAmount | ) |
Sets the amount of the article remaining in stock.
integer | $iRemainingAmount | Articles remaining in stock |
|
private |
|
private |
|
protected |