Todo List
This class takes care of the genre object
[line 29]
[line 30]
static void build_cache( $ids, [ $fields = '*'])
Genre __construct( [ $genre_id = 0])
void format( )
this reformats the genre object so it's all purdy and creates a link var
void get_albums( )
This gets all of the albums that have at least one song in this genre
void get_album_count( )
Returns the number of albums that contain a song of this genre
void get_artists( )
This gets all of the artists who have at least one song in this genre
void get_artist_count( )
Returns the number of artists who have at least one song in this genre
void get_genres( $sql)
this returns an array of genres based on a sql statement that's passed
void get_random_songs( )
This is the same as get_songs except it returns a random assortment of songs from this genre
void get_songs( )
This gets all of the songs in this genre and returns an array of song objects
void get_song_count( )
This returns the number of songs in said genre
void get_sql_from_match( $match)
This is specificly for browsing it takes the match and returns the sql call that we want to use