/** * Returns current currency code * * @return string */ protected function getCurrentCurrencyId() { if (!isset($this->currency)) { if (\XLite\Core\Request::getInstance()->currency) { $this->currency = \XLite\Core\Database::getRepo('XLite\\Model\\Currency')->find(\XLite\Core\Request::getInstance()->currency); } if (!$this->currency) { $this->currency = \XLite::getInstance()->getCurrency(); } } return $this->currency->getCurrencyId(); }
/** * {@inheritDoc} */ public function getCurrencyId() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCurrencyId', array()); return parent::getCurrencyId(); }