Create a Tag object from a SimpleXMLElement.
static
Tag
fromSimpleXMLElement
(
$xml)
-
SimpleXMLElement
$xml: A SimpleXMLElement.
Search for tags similar to this one. Returns tags ranked by similarity, based on listening data.
static
array
getSimilar
(string $tag)
-
string
$tag: The tag name in question. (Required)
Get the top albums tagged by this tag, ordered by tag count.
static
array
getTopAlbums
(string $tag)
-
string
$tag: The tag name in question. (Required)
Get the top artists tagged by this tag, ordered by tag count.
static
array
getTopArtists
(string $tag)
-
string
$tag: The tag name in question. (Required)
Fetches the top global tags on last.fm, sorted by popularity (number of times used).
static
array
getTopTags
()
Get the top tracks tagged by this tag, ordered by tag count.
static
array
getTopTracks
(string $tag)
-
string
$tag: The tag name in question. (Required)
Get an artist chart for a tag, for a given date range. If no date range is supplied, it will return the most recent artist chart for this tag.
static
array
getWeeklyArtistChart
(string $tag, [integer $from = null], [integer $to = null], [integer $limit = null])
-
string
$tag: The tag name in question. (Required)
-
integer
$from: The date at which the chart should start from. See Tag.getWeeklyChartList for more. (Optional)
-
integer
$to: The date at which the chart should end on. See Tag.getWeeklyChartList for more. (Optional)
-
integer
$limit: The number of chart items to return (default = 50). (Optional)
Get a list of available charts for this group, expressed as date ranges which can be sent to the chart services.
static
array
getWeeklyChartList
(string $tag)
-
string
$tag: The tag name in question. (Required)
Search for a tag by name. Returns matches sorted by relevance.
static
array
search
(string $tag, [integer $limit = null], [integer $page = null])
-
string
$tag: The tag name in question. (Required)
-
integer
$limit: Limit the number of tags 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 a Tag object.
Tag
__construct
(string $name, integer $count, string $url)
-
string
$name: Tag name.
-
integer
$count: Tag count.
-
string
$url: Tag URL.
Returns the tags count.
integer
getCount
()
Returns the tags name.
string
getName
()
Returns the tags last.fm URL.
string
getUrl
()