I'm creating a new module for allowing me to work with currency exchanges. For doing this I'm extending this class:
Mage_Directory_Model_Currency_Import_Abstract
Overriding this method:
abstract protected function _convert($currencyFrom, $currencyTo);
Now that my module is installed, I don't know how I can call this method from my checkout classes. I want to convert some prices.
I could call it using:
Mage::getModel('my_currencyconverter/my_model')->_convert('USD', 'EUR');
But I had to change first that previous function visibility, from protected to public.
How do I use this new function?