oxerpcompatability.php

Go to the documentation of this file.
00001 <?php
00002 
00003 class OXERPCompatability
00004 {
00010     public function getPkgRevision($sBasePath = null) {
00011         $sFile = (!$sBasePath?getShopBasePath():$sBasePath).'/pkg.rev';
00012 
00013         if(is_readable($sFile)) {
00014             return (int) trim(file_get_contents($sFile));
00015         }
00016         // TODO: return newest (HEAD)
00017         return 999999999; //13895;
00018     }
00019 
00025     public function getShopRevision()
00026     {
00027         $oConfig   = oxConfig::getInstance();
00028 
00029         if (method_exists($oConfig,'getRevision')) {
00030             $sRevision = $oConfig->getRevision();
00031             if ($sRevision !== false) {
00032                 return $sRevision;
00033             }
00034         }
00035 
00036         return $this->getPkgRevision();
00037     }
00038 
00046     public function isPasswordSaltSupported($iRev = null)
00047     {
00048         if (!$iRev) {
00049             $iRev = $this->getShopRevision();
00050         }
00051         return $iRev >= 14455;
00052     }
00053 
00062     public function isPasswordSaltInOxUser($iRev = null)
00063     {
00064         if (!$iRev) {
00065             $iRev = $this->getShopRevision();
00066         }
00067         return $iRev >= 14842;
00068     }
00069 
00077     public function isOrderArticleStockAsDouble($iRev = null)
00078     {
00079         if (!$iRev) {
00080             $iRev = $this->getShopRevision();
00081         }
00082         return $iRev >= 14260;
00083     }
00084 
00092     public function isArticleNullLongDescComatable($iRev = null)
00093     {
00094         if (!$iRev) {
00095             $iRev = $this->getShopRevision();
00096         }
00097         return $iRev >= 14036;
00098     }
00099 
00107     public function isArticleVariantMinPriceAllwaysUpdated($iRev = null)
00108     {
00109         if (!$iRev) {
00110             $iRev = $this->getShopRevision();
00111         }
00112         return $iRev < 14260;
00113     }
00114 
00115 }

Generated on Thu Feb 19 15:02:22 2009 for OXID eShop CE by  doxygen 1.5.5