__construct() public method

public __construct ( )
Exemplo n.º 1
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $key = isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : '';
     $key .= '|' . __FILE__;
     $this->_cachekey = self::PREFIX . '_' . hash('md5', $key);
     $this->_storage = new Horde_Autoloader_Cache_Bootstrap();
     $data = $this->_storage->get($this->_cachekey);
     if ($data === false) {
         $this->_newkey = true;
     } else {
         $this->_cache = $data;
     }
     register_shutdown_function(array($this, 'shutdown'));
 }