Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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)));
 }
Ejemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('M2ePro/common/component/container.phtml');
 }