Ejemplo n.º 1
0
 /**
  * Define buttons widgets
  *
  * @return array
  */
 protected function defineButtons()
 {
     $list = parent::defineButtons();
     if ($this->getAdditionalButtons()) {
         $list['additional'] = $this->getWidget(array('template' => 'items_list/model/additional_buttons.tpl'));
     }
     return $list;
 }
Ejemplo n.º 2
0
 /**
  * Define buttons widgets
  *
  * @return array
  */
 protected function defineButtons()
 {
     $list = parent::defineButtons();
     if (\XLite::getController()->isOrderEditable()) {
         $list['sendNotification'] = $this->getSendNotificationWidget();
         $list['recalculate'] = $this->getRecalculateButton();
     }
     return $list;
 }
Ejemplo n.º 3
0
 /**
  * Define buttons widgets
  *
  * @return array
  */
 protected function defineButtons()
 {
     $list = parent::defineButtons() + $this->getAdditionalButtons();
     return $list;
 }
Ejemplo n.º 4
0
 /**
  * Define buttons widgets
  *
  * @return array
  */
 protected function defineButtons()
 {
     $list = parent::defineButtons();
     $list['addons-list'] = $this->getWidget(array(\XLite\View\Button\AButton::PARAM_LABEL => static::t('Back to methods'), \XLite\View\Button\AButton::PARAM_STYLE => 'action addons-list-back-button', \XLite\View\Button\Link::PARAM_LOCATION => $this->buildURL('payment_settings')), '\\XLite\\View\\Button\\SimpleLink');
     return $list;
 }