public static function getCurrencies() { if (empty(self::$_currencies)) { $db = JFactory::getDBO(); $query = "select * from #__ksenmart_currencies"; $db->setQuery($query); $rows = $db->loadObjectList('id'); if ($rows) { self::$_currencies = $rows; } } return self::$_currencies; }