Back to PhocaGalleryTag class

Method getAllTags

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

Method getAllTags - Source code

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