Пример #1
0
 /**
  * Class constructor
  */
 public function __construct()
 {
     if (defined('BP')) {
         self::$_BP = BP;
     } elseif (strpos($_SERVER["SCRIPT_FILENAME"], 'get.php') !== false) {
         global $bp;
         //get from get.php
         if (isset($bp) && !empty($bp)) {
             self::$_BP = $bp;
         }
     }
     // Allow APC to be disabled externally by explicitly setting Varien_Autoload::$useAPC = FALSE;
     if (self::$useAPC === null) {
         self::$useAPC = extension_loaded('apc') && ini_get('apc.enabled');
     }
     self::$cacheKey = self::CACHE_KEY_PREFIX . "_" . md5(self::$_BP);
     self::registerScope(self::$_scope);
     self::loadCacheContent();
 }