oxarticleexception.php

Go to the documentation of this file.
00001 <?php
00002 
00006 class oxArticleException extends oxException
00007 {
00008 
00014     protected $_sArticleNr = null;
00015 
00021     protected $_sProductId = null;
00022 
00028     public function setArticleNr($sArticleNr)
00029     {
00030         $this->_sArticleNr = $sArticleNr;
00031     }
00032 
00038     public function getArticleNr()
00039     {
00040         return $this->_sArticleNr;
00041     }
00042 
00048     public function setProductId($sProductId)
00049     {
00050         $this->_sProductId = $sProductId;
00051     }
00052 
00058     public function getProductId()
00059     {
00060         return $this->_sProductId;
00061     }
00062 
00069     public function getString()
00070     {
00071         return __CLASS__ . '-' . parent::getString() . " Faulty Article --> " . $this->_sArticleNr . "\n";
00072     }
00073 
00074 
00080     public function getValues()
00081     {
00082         $aRes = parent::getValues();
00083         $aRes['articleNr'] = $this->getArticleNr();
00084         $aRes['productId'] = $this->getProductId();
00085 
00086         return $aRes;
00087     }
00088 }