components/FcrnRate.php
public function getCurrencyIdByCode($code) {
        $this->sError = FALSE;

        if ($this->_currencyCode2Id === FALSE) {
            $this->_loadCurrencyCodes();
        }

        if (!isset($this->_currencyCode2Id[$code])) {
            $this->sError = 'Incorect currency code: ' . $code;
            return FALSE;
        }

        return $this->_currencyCode2Id[$code];
    }
public function getCurrencyIdByCode($code) {
        $this->sError = FALSE;

        if ($this->_currencyCode2Id === FALSE) {
            $this->_loadCurrencyCodes();
        }

        if (!isset($this->_currencyCode2Id[$code])) {
            $this->sError = 'Incorect currency code: ' . $code;
            return FALSE;
        }

        return $this->_currencyCode2Id[$code];
    }
public function getCurrencyIdByCode ( $ code ) { $ this -> sError = FALSE ; if ( $ this -> _currencyCode2Id === FALSE ) { $ this -> _loadCurrencyCodes ( ) ; } if ( ! isset ( $ this -> _currencyCode2Id [ $ code ] ) ) { $ this -> sError = 'Incorect currency code: ' . $ code ; return FALSE ; } return $ this -> _currencyCode2Id [ $ code ] ; }
Get cyrrency id by currency code
@param char $sCode currency code
@return boolean|int - currency id
Get cyrrency id by currency code