*/ class Mage_Install_Block_State extends Mage_Core_Block_Template { public function __construct() { $this->setTemplate('install/state.phtml'); $this->assign('steps', Mage::getSingleton('install/wizard')->getSteps()); } /** * Get previous downloader steps * * @return array */ public function getDownloaderSteps() { if ($this->isDownloaderInstall()) { $steps = array( Mage::helper('install')->__('Welcome'), Mage::helper('install')->__('Validation'), Mage::helper('install')->__('Magento Connect Manager Deployment'), ); return $steps; } else { return array(); } } /** * Checks for Magento Connect Manager installation method * * @return bool */ public function isDownloaderInstall() { $session = Mage::app()->getCookie()->get('magento_downloader_session'); return $session ? true : false; } }