/** * Define buttons widgets * * @return array */ protected function defineButtons() { $list = parent::defineButtons(); $list['import'] = $this->getWidget(array(\XLite\View\Button\AButton::PARAM_STYLE => 'always-enabled', \XLite\View\Button\AButton::PARAM_LABEL => 'Re-import payment methods', \XLite\View\Button\AButton::PARAM_DISABLED => false), 'XLite\\Module\\CDev\\XPaymentsConnector\\View\\Button\\PaymentMethods\\Import'); $list['add_new'] = $this->getWidget(array(\XLite\View\Button\AButton::PARAM_STYLE => 'action link always-enabled', \XLite\View\Button\AButton::PARAM_LABEL => 'Add new payment method', \XLite\View\Button\AButton::PARAM_DISABLED => false, \XLite\View\Button\Link::PARAM_BLANK => true), 'XLite\\Module\\CDev\\XPaymentsConnector\\View\\Button\\PaymentMethods\\AddNew'); return $list; }
/** * Define additional buttons * * @return array */ protected function defineButtons() { $list = parent::defineButtons(); $list[] = $this->getWidget(array(), 'XLite\\View\\Button\\Addon\\ManageModulesSelected'); return $list; }
/** * Define additional buttons * * @return array */ protected function defineButtons() { $list = parent::defineButtons(); $list['shipping_methods'] = new \XLite\View\Button\SimpleLink(array(\XLite\View\Button\AButton::PARAM_LABEL => static::t('Back to shipping methods'), \XLite\View\Button\AButton::PARAM_STYLE => 'action shipping-list-back-button', \XLite\View\Button\Link::PARAM_LOCATION => $this->buildURL('shipping_methods'))); return $list; }
/** * Define buttons widgets * * @return array */ protected function defineButtons() { $list = parent::defineButtons(); $list['addons-list'] = $this->getWidget(array(\XLite\View\Button\AButton::PARAM_STYLE => 'action addons-list-back-button', \XLite\View\Button\BackToModulesLink::PARAM_MODULE_ID => $this->getModuleId()), '\\XLite\\View\\Button\\BackToModulesLink'); return $list; }