addExtension [line 142]
Add an extension element to this track.
This method adds an extension element to this track. This function will only accept instances of the File_XSPF_Extension class, which is documented elsewhere.
Parameters:
addLink [line 158]
Add a link element to this track.
This method adds a link element to this track. The $link parameter must be a instance of the File_XSPF_Link class or the method will fail.
Parameters:
addLocation [line 176]
Add a location element to this track.
This method adds the data of a location element to this track. This is the URL of this track, so probably an audio resource. Local files to be added should be prepended with a file:// scheme.
Parameters:
addMeta [line 196]
Add a meta element to this track.
This method adds a meta element to this track. The $meta parameter must be an instance of the File_XSPF_Meta class or the method will fail.
Parameters:
getAlbum [line 212]
Get the name of the album for this track.
This method returns the name of the collection from which this track comes from. For example, 'OK Computer'.
getAnnotation [line 226]
Get the human-readable description of this track.
This method returns the human-readable description of this track, which might be notes accompanying this track.
getCreator [line 312]
Get the human-readable name of the track author.
This method returns the human-readable name of the entity responsible for this track, which is most commonly the artist, but might be a conductor or arranger.
getDuration [line 490]
Get the duration of this track in milliseconds.
This method returns the duration of this track in milliseconds, and not seconds, as might be expected.
getIdentifier [line 255]
Get the canonical ID for this track.
This method returns the URN used to correctly identify a resource, which might be a hash, a MusicBrainz identifier, or an ISRC.
getImage [line 416]
Get the image to display for this track.
This method returns the URL of the image resource to be displayed for the duration of this track. If this image does not exist, clients should fall back to the image specified for the playlist.
getInfo [line 355]
Get the URL of a place where this track may be bought.
This method returns the URL of a place, such as an online shop, where this track may be bought, or somewhere where more information about the track can be found, such as a musical encyclopaedia.
getLink [line 401]
Get an array of File_XSPF_Link instances.
This method returns an array of File_XSPF_Link instances used to define non-XSPF data relevant to this track.
getLocation [line 241]
Get an array of locations for this track.
This method returns an array of URLs for the rendering of this track. These URLs will most likely be audio tracks for indepretation by a media player.
getMeta [line 387]
Get an array of File_XSPF_Meta instances.
This method returns an array of File_XSPF_Meta instances used to define metadata resources for this track.
getTitle [line 269]
Get the title of this track.
This method returns the title of this track, which is the human-readable name of the recording, such as 'Planet Telex'.
getTrackNumber [line 461]
Get the track number of this track.
This method returns the number representing the offset of this track within a collection of tracks, such as an album.
setAlbum [line 447]
void setAlbum(
string
$album)
|
|
Set the name of the album that contains this track.
This method sets the name of an album that contains this track, if indeed this track came from a collection.
Parameters:
setAnnotation [line 340]
void setAnnotation(
string
$annotation)
|
|
Set a human-readable comment on this track.
This method sets a human-readable description of this track, which may contain listening notes, or a review of the track.
Parameters:
setCreator [line 326]
void setCreator(
string
$creator)
|
|
Set the human-readable name of the track author.
This method sets the human-readable name of the track author, which might be the original artist, composer, or arranger. For example, 'Radiohead'.
Parameters:
setDuration [line 505]
void setDuration(
int
$duration)
|
|
Set the duration of this track.
This method sets the duration of this track in milliseconds, and not seconds. This method will use the intval method to cast the supplied duration to an integer.
Parameters:
setIdentifier [line 283]
Set the identifier object for this track.
This method sets the identifier for this track, which must be an instance of the File_XSPF_Identifier class.
Parameters:
setImage [line 431]
void setImage(
string
$image)
|
|
Set the URL of the image to display for the duration of this track.
This method sets the URL of the image that a content aggregator should display for the duration of this track being played. If this is not set, clients should fall back to the image specified for this playlist.
Parameters:
setInfo [line 370]
void setInfo(
string
$info)
|
|
Set the URL of where to buy this track.
This method sets the URL of a place where this track may be bought, or somewhere where more information about the track can be found. An example might be a page on Amazon.com, or iTunes.
Parameters:
setTitle [line 297]
void setTitle(
string
$title)
|
|
Set the human-readable title of this track.
This method sets the human-readable title of this track, which is the name by which it is most-often referred to, such as 'Planet Telex'.
Parameters:
setTrackNumber [line 476]
void setTrackNumber(
int
$trackNum)
|
|
Set the number of this track.
This method sets the track number for this track. If this track is part of a larger collection, such as an album, this will be the offset at which the track appears on the collection.
Parameters: