Public Member Functions | |
__construct () | |
install () | |
Protected Member Functions | |
_checkPhpExtensions () | |
_checkExtension ($extension) |
Definition at line 34 of file Env.php.
_checkExtension | ( | $ | extension | ) | [protected] |
Definition at line 61 of file Env.php.
00062 { 00063 if (is_array($extension)) { 00064 $oneLoaded = false; 00065 foreach ($extension as $item) { 00066 if (extension_loaded($item)) { 00067 $oneLoaded = true; 00068 } 00069 } 00070 00071 if (!$oneLoaded) { 00072 Mage::getSingleton('install/session')->addError( 00073 Mage::helper('install')->__('One from PHP Extensions "%s" must be loaded', implode(',', $extension)) 00074 ); 00075 return false; 00076 } 00077 } 00078 elseif(!extension_loaded($extension)) { 00079 Mage::getSingleton('install/session')->addError( 00080 Mage::helper('install')->__('PHP Extension "%s" must be loaded', $extension) 00081 ); 00082 return false; 00083 } 00084 else { 00085 /*Mage::getSingleton('install/session')->addError( 00086 Mage::helper('install')->__("PHP Extension '%s' loaded", $extension) 00087 );*/ 00088 } 00089 return true; 00090 }
_checkPhpExtensions | ( | ) | [protected] |
Definition at line 46 of file Env.php.
00047 { 00048 $res = true; 00049 $config = Mage::getSingleton('install/config')->getExtensionsForCheck(); 00050 foreach ($config as $extension => $info) { 00051 if (!empty($info) && is_array($info)) { 00052 $res = $this->_checkExtension($info) && $res; 00053 } 00054 else { 00055 $res = $this->_checkExtension($extension) && $res; 00056 } 00057 } 00058 return $res; 00059 }
install | ( | ) |
Definition at line 38 of file Env.php.
00039 { 00040 if (!$this->_checkPhpExtensions()) { 00041 throw new Exception(); 00042 } 00043 return $this; 00044 }