oxerpcompatability.php

Go to the documentation of this file.
00001 <?php
00002 
00006 class OXERPCompatability
00007 {
00015     public function getPkgRevision($sBasePath = null)
00016     {
00017         $sFile = (!$sBasePath?getShopBasePath():$sBasePath).'/pkg.rev';
00018 
00019         if (is_readable($sFile)) {
00020             return (int) trim(file_get_contents($sFile));
00021         }
00022         // TODO: return newest (HEAD)
00023         return 999999999; //13895;
00024     }
00025 
00031     public function getShopRevision()
00032     {
00033         $oConfig   = oxConfig::getInstance();
00034 
00035         if (method_exists( $oConfig, 'getRevision' )) {
00036             $sRevision = $oConfig->getRevision();
00037             if ($sRevision !== false) {
00038                 return $sRevision;
00039             }
00040         }
00041 
00042         return $this->getPkgRevision();
00043     }
00044 
00052     public function isPasswordSaltSupported($iRev = null)
00053     {
00054         if (!$iRev) {
00055             $iRev = $this->getShopRevision();
00056         }
00057         return $iRev >= 14455;
00058     }
00059 
00068     public function isPasswordSaltInOxUser($iRev = null)
00069     {
00070         if (!$iRev) {
00071             $iRev = $this->getShopRevision();
00072         }
00073         return $iRev >= 14842;
00074     }
00075 
00083     public function isOrderArticleStockAsDouble($iRev = null)
00084     {
00085         if (!$iRev) {
00086             $iRev = $this->getShopRevision();
00087         }
00088         return $iRev >= 14260;
00089     }
00090 
00098     public function isArticleNullLongDescComatable($iRev = null)
00099     {
00100         if (!$iRev) {
00101             $iRev = $this->getShopRevision();
00102         }
00103         return $iRev >= 14036;
00104     }
00105 
00113     public function isArticleVariantMinPriceAllwaysUpdated($iRev = null)
00114     {
00115         if (!$iRev) {
00116             $iRev = $this->getShopRevision();
00117         }
00118         return $iRev < 14260;
00119     }
00120 
00121 }

Generated on Tue Apr 21 15:45:44 2009 for OXID eShop CE by  doxygen 1.5.5