OXID eShop CE
4.9.5
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Pages
oxoutofstockexception.php
Go to the documentation of this file.
1
<?php
2
6
class
oxOutOfStockException
extends
oxArticleException
7
{
8
14
private
$_iRemainingAmount
= 0;
15
21
private
$_sBasketIndex
= null;
22
28
public
function
setRemainingAmount
($iRemainingAmount)
29
{
30
$this->_iRemainingAmount = (int) $iRemainingAmount;
31
}
32
38
public
function
getRemainingAmount
()
39
{
40
return
$this->_iRemainingAmount
;
41
}
42
48
public
function
setBasketIndex
($sBasketIndex)
49
{
50
$this->_sBasketIndex = $sBasketIndex;
51
}
52
58
public
function
getBasketIndex
()
59
{
60
return
$this->_sBasketIndex
;
61
}
62
69
public
function
getString
()
70
{
71
return
__CLASS__ .
'-'
.
parent::getString
() .
" Remaining Amount --> "
.
$this->_iRemainingAmount
;
72
}
73
82
public
function
getValues
()
83
{
84
$aRes =
parent::getValues
();
85
$aRes[
'remainingAmount'
] = $this->
getRemainingAmount
();
86
$aRes[
'basketIndex'
] = $this->
getBasketIndex
();
87
88
return
$aRes;
89
}
90
103
public
function
setDestination
($sDestination)
104
{
105
// in case destination not set, overriding default error message
106
if
(!$sDestination) {
107
$this->message =
oxRegistry::getLang
()->translateString($this->getMessage()) .
": "
. $this->
getRemainingAmount
();
108
}
else
{
109
$this->message =
oxRegistry::getLang
()->translateString($this->getMessage()) .
": "
;
110
}
111
}
112
}
core
exception
oxoutofstockexception.php
Generated by
1.8.1.2