Class Genre

Description

The Genre object represents a genre.

Genres are identified usign a key, which is a normalized version of the playlist name. For example, the key for Classic Rock is classic_rock.

Located in /genre.php (line 17)


	
			
Variable Summary
string $key
string $name
Method Summary
Playlist Genre (the $key)
string name ()
array tracks ()
Variables
string $key (line 22)

The primary key for the genre.

string $name (line 29)

The name of the genre. Use name() to make sure that the genre has been initialized.

Methods
Constructor Genre (line 40)

Creates a genre object.

Playlists are identified usign a key, which is a normalized version of the playlist name. For example, the key for Purchased Music is purchased_music.

  • return: the playlist
Playlist Genre (the $key)
  • the $key: playlist key
name (line 59)

The name of the genre.

  • return: the name
string name ()
tracks (line 69)

Returns an array of songs for the genre.

  • return: an array of Songs, indexed by track id
array tracks ()

Documentation generated on Sun, 12 Feb 2006 19:27:51 +0100 by phpDocumentor 1.2.3