Mage_Install_Model_Installer_Pear Class Reference

Inheritance diagram for Mage_Install_Model_Installer_Pear:

Mage_Install_Model_Installer_Abstract

List of all members.

Public Member Functions

 getPackages ()
 checkDownloads ()


Detailed Description

Definition at line 36 of file Pear.php.


Member Function Documentation

checkDownloads (  ) 

Definition at line 53 of file Pear.php.

00054     {
00055         $pear = new Varien_Pear;
00056         $pkg = new PEAR_PackageFile($pear->getConfig(), false);
00057         $result = true;
00058         foreach ($this->getPackages() as $package) {
00059             $obj = $pkg->fromAnyFile($package, PEAR_VALIDATE_NORMAL);
00060             if (PEAR::isError($obj)) {
00061                 $uinfo = $obj->getUserInfo();
00062                 if (is_array($uinfo)) {
00063                     foreach ($uinfo as $message) {
00064                         if (is_array($message)) {
00065                             $message = $message['message'];
00066                         }
00067                         Mage::getSingleton('install/session')->addError($message);
00068                     }
00069                 } else {
00070                     print_r($obj->getUserInfo());
00071                     #Mage::getSingleton('install/session')->addError($message);
00072                 }
00073                 $result = false;
00074             }
00075         }
00076         return $result;
00077     }

getPackages (  ) 

Definition at line 38 of file Pear.php.

00039     {
00040         $packages = array(
00041             'pear/PEAR-stable',
00042             'connect.magentocommerce.com/core/Mage_Pear_Helpers',
00043             'connect.magentocommerce.com/core/Lib_ZF',
00044             'connect.magentocommerce.com/core/Lib_Varien',
00045             'connect.magentocommerce.com/core/Mage_All',
00046             'connect.magentocommerce.com/core/Interface_Frontend_Default',
00047             'connect.magentocommerce.com/core/Interface_Adminhtml_Default',
00048             'connect.magentocommerce.com/core/Interface_Install_Default',
00049         );
00050         return $packages;
00051     }


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

Generated on Sat Jul 4 17:24:27 2009 for Magento by  doxygen 1.5.8