Ampache
[ class tree: Ampache ] [ index: Ampache ] [ all elements ]

Class: Genre

Source Location: /lib/class/genre.class.php

Class Overview


Genre Class


Variables

Methods



Class Details

[line 26]
Genre Class

This class takes care of the genre object




[ Top ]


Class Variables

$id =

[line 29]



Tags:

access:  public

Type:   mixed


[ Top ]

$name =

[line 30]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


static method build_cache [line 45]

static void build_cache( $ids, [ $fields = '*'])



Tags:

access:  public


Parameters:

   $ids  
   $fields  

[ Top ]

constructor __construct [line 35]

Genre __construct( [ $genre_id = 0])

Constructor



Tags:

access:  public


Parameters:

   $genre_id  

[ Top ]

method format [line 76]

void format( )

format

this reformats the genre object so it's all purdy and creates a link var




Tags:

access:  public


[ Top ]

method get_albums [line 176]

void get_albums( )

get_albums

This gets all of the albums that have at least one song in this genre




[ Top ]

method get_album_count [line 105]

void get_album_count( )

get_album_count

Returns the number of albums that contain a song of this genre




Tags:

access:  public


[ Top ]

method get_artists [line 195]

void get_artists( )

get_artists

This gets all of the artists who have at least one song in this genre




Tags:

access:  public


[ Top ]

method get_artist_count [line 120]

void get_artist_count( )

get_artist_count

Returns the number of artists who have at least one song in this genre




Tags:

access:  public


[ Top ]

method get_genres [line 216]

void get_genres( $sql)

get_genres

this returns an array of genres based on a sql statement that's passed




Parameters:

   $sql  

[ Top ]

method get_random_songs [line 155]

void get_random_songs( )

get_random_songs

This is the same as get_songs except it returns a random assortment of songs from this genre




Tags:

access:  public


[ Top ]

method get_songs [line 135]

void get_songs( )

get_songs

This gets all of the songs in this genre and returns an array of song objects




Tags:

access:  public


[ Top ]

method get_song_count [line 90]

void get_song_count( )

get_song_count

This returns the number of songs in said genre




Tags:

access:  public


[ Top ]

method get_sql_from_match [line 236]

void get_sql_from_match( $match)

get_sql_from_match

This is specificly for browsing it takes the match and returns the sql call that we want to use




Parameters:

   $match  

[ Top ]


Documentation generated on Thu, 12 Feb 2009 07:59:58 +0900 by phpDocumentor 1.4.2