public function getSwitchUrl() { $params = array('_current' => true, $this->getParamName() => $this->getParamPlaceHolder()); $tabId = Ess_M2ePro_Block_Adminhtml_Common_Component_Abstract::getTabIdByComponent($this->getData('component_mode')); if (!is_null($tabId)) { $params['tab'] = $tabId; } $controllerName = $this->getData('controller_name') ? $this->getData('controller_name') : '*'; return $this->getUrl("*/{$controllerName}/*", $params); }
public function getFilterUrl() { if ($this->getRequest()->isXmlHttpRequest()) { $params = array(); } else { $params = $this->getRequest()->getParams(); } $tabId = Ess_M2ePro_Block_Adminhtml_Common_Component_Abstract::getTabIdByComponent($this->getData('component_mode')); if (!is_null($tabId)) { $params['tab'] = $tabId; } if ($this->isChecked()) { unset($params[$this->getParamName()]); } else { $params[$this->getParamName()] = true; } return $this->getUrl('*/' . $this->getData('controller') . '/*', $params); }
public function confirmTutorialAction() { $component = $this->getRequest()->getParam('component'); if (empty($component)) { $this->_redirect('*/adminhtml_common_listing/index'); return; } Mage::helper('M2ePro/Module')->getConfig()->setGroupValue('/view/common/' . $component . '/listing/', 'tutorial_shown', 1); $this->_redirect('*/adminhtml_common_listing/index', array('tab' => Ess_M2ePro_Block_Adminhtml_Common_Component_Abstract::getTabIdByComponent($component))); }
public function __construct() { parent::__construct(); $this->setTemplate('M2ePro/common/component/container.phtml'); }