Back to PhocacartParameter class

Method options

public static
options
(mixed $type = 0)

Method options - Source code

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