Tag an album using a list of user supplied tags.
static
void
addTags
(
string $artist,
string $album,
$tags,
Session $session)
-
string
$artist: The artist name in question. (Required)
-
string
$album: The album name in question. (Required)
-
array
$tags: An array of user supplied tags to apply to this album. Accepts a maximum of 10 tags. (Required)
-
Session
$session: A session obtained by getSession or getMobileSession. (Required)
Create an Album object from a SimpleXMLElement object.
static
Album
fromSimpleXMLElement
(
$xml)
-
SimpleXMLElement
$xml: A SimpleXMLElement object.
Get the metadata for an album on last.fm using the album name or a MusicBrainz ID. See playlist.fetch on how to get the album playlist.
static
Album
getInfo
(
string $artist,
string $album, [
string $mbid =
null], [
string $lang =
null])
-
string
$artist: The artist name in question. (Optional)
-
string
$album: The album name in question. (Optional)
-
string
$mbid: The MusicBrainz ID for the album. (Optional)
-
string
$lang: The language to return the biography in, expressed as an ISO 639 alpha-2 code. (Optional)
Get an album playlist for streaming. INOFFICIAL.
static
Playlist
getPlaylist
(
string $artist,
string $album)
-
string
$artist: The artist name in question. (Required)
-
string
$album: The album name in question. (Required)
Get the tags applied by an individual user to an album on last.fm.
static
array
getTags
(
string $artist,
string $album,
Session $session)
-
string
$artist: The artist name in question. (Required)
-
string
$album: The album name in question. (Required)
-
Session
$session: A session obtained by getSession or getMobileSession. (Required)
Remove a user's tag from an album.
static
void
removeTag
(
string $artist,
string $album,
string $tag,
Session $session)
-
string
$artist: The artist name in question. (Required)
-
string
$album: The album name in question. (Required)
-
string
$tag: A single user tag to remove from this album. (Required)
-
Session
$session: A session obtained by getSession or getMobileSession. (Required)
Search for an album by name. Returns album matches sorted by relevance.
static
PaginatedResult
search
(
string $album, [
integer $limit =
null], [
integer $page =
null])
-
string
$album: The album name in question. (Required)
-
integer
$limit: Limit the number of albums returned at one time. Default (maximum) is 30. (Optional)
-
integer
$page: Scan into the results by specifying a page number. Defaults to first page. (Optional)
Create an album object.
Album
__construct
(mixed $artist, string $name, integer $id, string $mbid, string $url, $images, integer $listeners, integer $playCount, integer $releaseDate, $topTags)
-
mixed
$artist: An artist object or string.
-
string
$name: Name of this album.
-
integer
$id: ID of this album.
-
string
$mbid: MusicBrainz ID of this album.
-
string
$url: Last.fm URL of this album.
-
array
$images: An array of cover art images of different sizes.
-
integer
$listeners: Number of listeners of this album.
-
integer
$playCount: Play count of this album.
-
integer
$releaseDate: Release date of this album.
-
array
$topTags: An array of top tags of this album.
Redefinition of:
- Media::__construct()
- Create a media object.
Returns the artist of this album.
mixed
getArtist
()
Returns the ID of this album.
integer
getId
()
Returns the release date of this album.
integer
getReleaseDate
()
Returns the top tags of this album.
array
getTopTags
()
Inherited Methods
Inherited From Media
Media::__construct()
Media::getImage()
Media::getListeners()
Media::getMbid()
Media::getName()
Media::getPlayCount()
Media::getUrl()