oxarticleexception.php

Go to the documentation of this file.
00001 <?php
00002 
00006 class oxArticleException extends oxException
00007 {
00013     protected $_sArticleNr = null;
00014 
00020     protected $_sProductId = null;
00021 
00029     public function setArticleNr($sArticleNr)
00030     {
00031         $this->_sArticleNr = $sArticleNr;
00032     }
00033 
00039     public function getArticleNr()
00040     {
00041         return $this->_sArticleNr;
00042     }
00043 
00051     public function setProductId( $sProductId )
00052     {
00053         $this->_sProductId = $sProductId;
00054     }
00055 
00061     public function getProductId()
00062     {
00063         return $this->_sProductId;
00064     }
00065 
00072     public function getString()
00073     {
00074         return __CLASS__ .'-'.parent::getString()." Faulty Article --> ".$this->_sArticleNr . "\n";
00075     }
00076 
00077 
00083     public function getValues()
00084     {
00085         $aRes = parent::getValues();
00086         $aRes['articleNr'] = $this->getArticleNr();
00087         $aRes['productId'] = $this->getProductId();
00088         return $aRes;
00089     }
00090 }