From 9e24bb2ef08b86c6d1aa150fda5a05538f4882da Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 14 Jan 2016 21:42:28 -0500 Subject: Do not cache app settings in session --- app/Model/Currency.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'app/Model/Currency.php') diff --git a/app/Model/Currency.php b/app/Model/Currency.php index 4351d2aa..abcce2f0 100644 --- a/app/Model/Currency.php +++ b/app/Model/Currency.php @@ -17,6 +17,32 @@ class Currency extends Base */ const TABLE = 'currencies'; + /** + * Get available application currencies + * + * @access public + * @return array + */ + public function getCurrencies() + { + return array( + 'USD' => t('USD - US Dollar'), + 'EUR' => t('EUR - Euro'), + 'GBP' => t('GBP - British Pound'), + 'CHF' => t('CHF - Swiss Francs'), + 'CAD' => t('CAD - Canadian Dollar'), + 'AUD' => t('AUD - Australian Dollar'), + 'NZD' => t('NZD - New Zealand Dollar'), + 'INR' => t('INR - Indian Rupee'), + 'JPY' => t('JPY - Japanese Yen'), + 'RSD' => t('RSD - Serbian dinar'), + 'SEK' => t('SEK - Swedish Krona'), + 'NOK' => t('NOK - Norwegian Krone'), + 'BAM' => t('BAM - Konvertible Mark'), + 'RUB' => t('RUB - Russian Ruble'), + ); + } + /** * Get all currency rates * -- cgit v1.2.3