/** * Override constructor to add new tab * * @param array $params Handler params OPTIONAL * * @return void */ public function __construct(array $params = array()) { parent::__construct($params); if ($this->getOrdersWithFiles()) { $this->tabs['ordered_files'] = array('title' => 'Ordered files', 'template' => 'modules/CDev/Egoods/files.tpl'); } }
public function __construct() { if ($this->getProfile()) { $this->tabs['securesubmit_credit_cards'] = array('title' => 'SecureSubmit credit cards', 'template' => 'modules/Heartland/Securesubmit/account/securesubmit_credit_cards.tpl'); } parent::__construct(); }
/** * Override constructor to add new tab * * @param array $params Handler params OPTIONAL * * @return void */ public function __construct(array $params = array()) { if ($this->isLogged()) { $cnd = new \XLite\Core\CommonCell(); $cnd->user = \XLite\Core\Auth::getInstance()->getProfile(); $count = \XLite\Core\Database::getRepo('XLite\\Model\\Order')->searchWithPinCodes($cnd, true); if ($count > 0) { $this->tabs['pin_codes'] = array('title' => 'PIN codes', 'template' => 'modules/CDev/PINCodes/account_pin_codes.tpl'); } } parent::__construct($params); }
/** * init * * @return void */ public function __construct() { $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(); }