The Song object represents a song.
iTunes assigns each song a track ID, and this is used as the primary key for songs.
Located in /music.php (line 16)
If the song is a compilation, the name of the actual artist.
Comments entered in the Get Info window.
The title of the song.
The relative path to the song inside the music folder.
The number of times the song has been played.
The star rating on a scale of 0-100.
The size in kilobytes.
The time in seconds.
The track number on the album.
The primary key for the song, as assigned by iTunes.
The year of release.
Creates a Song object from a song array.
Don't call this constructor method directly; instead use:
Adds the song's time and size to the global variables $total_time and $total_size.
This method is sent by the following to each song to compute the total time and size message.
Accessor for the album object.
Using the accessor method makes sure that the album object has been initialized.
Accessor for the artist object.
Using the accessor method makes sure that the artist has been initialized.
Returns a Song object.
Both the artist key and the album key are optional, but including them increases performance.
Returns a URL to search the iTunes Store for the song.
The search results will display all versions of the song from the artist.
The name of the song.
The path to the music file, if it is available online.
Combines the music path set in the preferences with the song's relative path in the music folder.
Returns an array of random songs.
This method is used by the Party Shuffle feature.
Sends add_time_and_size() to each of the songs.
Gets an array of info for all songs.
The array contains arrays with artist and album keys, indexed by track id. For an array of Song objects, use Song::tracks() instead.
Returns an array of all songs, sorted by name.
This method is very slow, so only use if you really need access to all songs.
Returns an array of all track ids, sorted by name.
Documentation generated on Sun, 12 Feb 2006 19:27:54 +0100 by phpDocumentor 1.2.3