Back to PhocacartZone class

Method getAllZones

public static
getAllZones
(mixed $order = 'id')

Method getAllZones - Source code

public static function getAllZones($order = 'id')
{
    $db = Factory::getDBO();
    $query = 'SELECT a.id AS value, a.title AS text' . ' FROM #__phocacart_zones AS a' . ' ORDER BY ' . $order;
    $db->setQuery($query);
    $zones = $db->loadObjectList();
    return $zones;
}