_getHelper(); parent::__construct(); $this->setTemplate('pacsoft/website/switcher.phtml'); $this->setUseConfirm(true); $this->setUseAjax(true); $this->setDefaultWebsiteName($helper->__('All Websites')); } protected function _getHelper() { return Mage::helper('pacsoft/rates'); } public function getWebsites() { return $this->_getHelper()->getWebsites(); } protected function getWebsite() { if(is_null($this->_website)) { $this->_website = $this->_getHelper()->getWebsite(); } return $this->_website; } public function getWebsiteId() { return $this->_getHelper()->getWebsiteId($this->getWebsite()); } public function hasDefaultOption($hasDefaultOption = null) { if (null !== $hasDefaultOption) { $this->_hasDefaultOption = $hasDefaultOption; } return $this->_hasDefaultOption; } public function getSwitchUrl() { if ($url = $this->getData('switch_url')) { return $url; } return $this->getUrl('*/*/*', array('_current' => true, $this->_websiteVarName => null)); } }