Back to PhocacartTax class

Method getAllTaxes

public static
getAllTaxes
()

Method getAllTaxes - Source code

public static function getAllTaxes()
{
    $db = Factory::getDBO();
    $q = 'SELECT t.id, t.title, t.tax_rate' . ' FROM #__phocacart_taxes as t' . ' ORDER BY t.ordering ASC';
    $db->setQuery($q);
    $items = $db->loadAssocList('id');
    return $items;
}