source/Core/Config.php
public function getCurrencyObject($name)
    {
        $search = $this->getCurrencyArray();
        foreach ($search as $cur) {
            if ($cur->name == $name) {
                return $cur;
            }
        }
    }
public function getCurrencyObject($name)
    {
        $search = $this->getCurrencyArray();
        foreach ($search as $cur) {
            if ($cur->name == $name) {
                return $cur;
            }
        }
    }
public function getCurrencyObject ( $ name ) { $ search = $ this -> getCurrencyArray ( ) ; foreach ( $ search as $ cur ) { if ( $ cur -> name == $ name ) { return $ cur ; } } }
Returns currency object.

@param string $name Name of active currency

@return object
Returns currency object .