public static function getAllCurrencies()
{
if (self::$allcurrencies === false) {
$db = Factory::getDBO();
$query = ' SELECT a.id, a.id as value, CONCAT_WS(\'\', a.title, \' (\', a.code, \')\') as text, a.title, a.alias, a.code, a.image FROM #__phocacart_currencies AS a' . ' WHERE a.published = 1' . ' ORDER BY a.id';
$db->setQuery($query);
$c = $db->loadObjectList();
if (!empty($c)) {
self::$allcurrencies = $c;
} else {
self::$allcurrencies = false;
}
}
return self::$allcurrencies;
}