Varien_Pear_Registry Class Reference

List of all members.

Public Member Functions

 _initializeDepDB ()


Detailed Description

Definition at line 3 of file Registry.php.


Member Function Documentation

_initializeDepDB (  ) 

Definition at line 5 of file Registry.php.

00006     {
00007         if (!isset($this->_dependencyDB)) {
00008             static $initializing = false;
00009             if (!$initializing) {
00010                 $initializing = true;
00011                 if (!$this->_config) { // never used?
00012                     if (OS_WINDOWS) {
00013                         $file = 'pear.ini';
00014                     } else {
00015                         $file = '.pearrc';
00016                     }
00017                     $this->_config = &new PEAR_Config($this->statedir . DIRECTORY_SEPARATOR .
00018                         $file, '-'); // NO SYSTEM INI FILE
00019                     $this->_config->setRegistry($this);
00020                     $this->_config->set('php_dir', $this->install_dir);
00021                 }
00022                 $this->_dependencyDB = &PEAR_DependencyDB::singleton($this->_config);
00023                 if (PEAR::isError($this->_dependencyDB)) {
00024                     // attempt to recover by removing the dep db
00025                     if (file_exists($this->_config->get('php_dir', null, 'pear.php.net') .
00026                         DIRECTORY_SEPARATOR . '.depdb')) {
00027                         @unlink($this->_config->get('php_dir', null, 'pear.php.net') .
00028                             DIRECTORY_SEPARATOR . '.depdb');
00029                     }
00030                     $this->_dependencyDB = &PEAR_DependencyDB::singleton($this->_config);
00031                     if (PEAR::isError($this->_dependencyDB)) {
00032                         echo $this->_dependencyDB->getMessage();
00033                         echo 'Unrecoverable error';
00034                         exit(1);
00035                     }
00036                 }
00037                 $initializing = false;
00038             }
00039         }
00040     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:25:04 2009 for Magento by  doxygen 1.5.8