public function __construct(array $params = array())
 {
     if ($this->getProfile()) {
         $this->tabs['securesubmit_credit_cards'] = array('title' => 'SecureSubmit credit cards', 'template' => 'modules/Heartland/Securesubmit/account/securesubmit_credit_cards.tpl');
     }
     parent::__construct();
 }
Beispiel #2
0
 /**
  * Define and set handler attributes; initialize handler
  *
  * @param array $params Handler params OPTIONAL
  *
  * @return void
  */
 public function __construct(array $params = array())
 {
     $cnd = new \XLite\Core\CommonCell();
     $cnd->class = 'Module\\CDev\\XPaymentsConnector\\Model\\Payment\\Processor\\SavedCard';
     $saveCardsMethods = \XLite\Core\Database::getRepo('XLite\\Model\\Payment\\Method')->search($cnd);
     if ($saveCardsMethods) {
         $found = false;
         foreach ($saveCardsMethods as $pm) {
             if ($pm->isEnabled()) {
                 $found = true;
                 break;
             }
         }
         if ($found) {
             $this->tabs['saved_cards'] = array('title' => 'Saved credit cards', 'template' => 'modules/CDev/XPaymentsConnector/account/saved_cards.tpl');
         }
     }
     parent::__construct();
 }