oxoutofstockexception.php

Go to the documentation of this file.
00001 <?php
00002 
00006 class oxOutOfStockException extends oxArticleException
00007 {
00013     private $_iRemainingAmount = 0;
00014 
00022     public function setRemainingAmount( $iRemainingAmount )
00023     {
00024         $this->_iRemainingAmount = (int) $iRemainingAmount;
00025     }
00026 
00032     public function getRemainingAmount()
00033     {
00034         return $this->_iRemainingAmount;
00035     }
00036 
00043     public function getString()
00044     {
00045         return __CLASS__.'-'.parent::getString()." Remaining Amount --> ".$this->_iRemainingAmount;
00046     }
00047 
00056     public function getValues()
00057     {
00058         $aRes = parent::getValues();
00059         $aRes['remainingAmount'] = $this->getRemainingAmount();
00060         return $aRes;
00061     }
00062 
00077     public function setDestination( $sDestination )
00078     {
00079         // in case destination not set, overriding default error message
00080         if ( !$sDestination ) {
00081             $this->message = oxLang::getInstance()->translateString( $this->getMessage() ) . " " . $this->getRemainingAmount();
00082         }
00083     }
00084 }

Generated by  doxygen 1.6.2