diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-01-14 21:42:28 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-01-14 21:42:28 -0500 |
commit | 9e24bb2ef08b86c6d1aa150fda5a05538f4882da (patch) | |
tree | 88c5e575d58680359dca293c7971292cf08b0626 /app/Model/Currency.php | |
parent | a8f404421f3e404ccd285da861a8cb25f3642f31 (diff) |
Do not cache app settings in session
Diffstat (limited to 'app/Model/Currency.php')
-rw-r--r-- | app/Model/Currency.php | 26 |
1 files changed, 26 insertions, 0 deletions
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 @@ -18,6 +18,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 * * @access public |