Back to PhocacartCountry class

Method options

public static
options
()

Method options - Source code

public static function options()
{
    $db = Factory::getDBO();
    $query = 'SELECT a.title AS text, a.id AS value' . ' FROM #__phocacart_countries AS a' . ' WHERE a.published = 1' . ' ORDER BY a.ordering';
    $db->setQuery($query);
    $items = $db->loadObjectList();
    return $items;
}