Service/Audioscrobbler.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service
- Subpackage
- Audioscrobbler
- Version
- $Id$
\Zend_Service_Audioscrobbler
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
array $_error = null
null
Details- Type
- array
- Access
- protected
Methods
__call(string $method, array $args) : \Zend_Service_Audioscrobbler
Call Intercept for set($name, $field)
Name | Type | Description |
---|---|---|
$method | string | |
$args | array |
Type | Description |
---|---|
\Zend_Service_Audioscrobbler |
__construct() : void
Sets up character encoding, instantiates the HTTP client, and assigns the web service version.
_errorHandler(integer $errno, string $errstr, string $errfile, integer $errline, array $errcontext) : void
Saves the provided error information to this instance
Name | Type | Description |
---|---|---|
$errno | integer | |
$errstr | string | |
$errfile | string | |
$errline | integer | |
$errcontext | array |
_getInfo(string $service, string $params = null) : \SimpleXMLElement
Protected method that queries REST service and returns SimpleXML response set
Name | Type | Description |
---|---|---|
$service | string | name of Audioscrobbler service file we're accessing |
$params | string | parameters that we send to the service if needded |
Type | Description |
---|---|
\SimpleXMLElement | result set |
Exception | Description |
---|---|
\Zend_Http_Client_Exception | |
\Zend_Service_Exception |
- Access
- protected
albumGetInfo() : \SimpleXMLElement
Get information about an album
Type | Description |
---|---|
\SimpleXMLElement |
artistGetRelatedArtists() : \SimpleXMLElement
Utility function that returns a list of artists similiar to this artist
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
artistGetTopAlbums() : \SimpleXMLElement
Utility function that returns a list of this artist's top-rated albums
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
artistGetTopFans() : \SimpleXMLElement
Utility function that returns a list of this artist's top listeners
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
artistGetTopTags() : \SimpleXMLElement
Utility function that returns a list of this artist's top-rated tags
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
artistGetTopTracks() : \SimpleXMLElement
Utility function that returns a list of this artist's top-rated tracks
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
get(string $field) : string | false
Returns a field value, or false if the named field does not exist
Name | Type | Description |
---|---|---|
$field | string |
Type | Description |
---|---|
string | false |
groupGetWeeklyAlbumChartList(int $from = NULL, int $to = NULL) : \SimpleXMLElement
Retrieve Weekly album charts.
Name | Type | Description |
---|---|---|
$from | int | |
$to | int |
Type | Description |
---|---|
\SimpleXMLElement |
groupGetWeeklyArtistChartList(int $from = NULL, int $to = NULL) : \SimpleXMLElement
Retrieve weekly Artist Charts
Name | Type | Description |
---|---|---|
$from | int | |
$to | int |
Type | Description |
---|---|
\SimpleXMLElement |
groupGetWeeklyChartList() : \SimpleXMLElement
Get weekly chart list by current set group.
Type | Description |
---|---|
\SimpleXMLElement |
groupGetWeeklyTrackChartList(int $from = NULL, int $to = NULL) : \SimpleXMLElement
Retrieve Weekly Track Charts
Name | Type | Description |
---|---|---|
$from | int | |
$to | int |
Type | Description |
---|---|
\SimpleXMLElement |
set(string $field, string $value) : \Zend_Service_Audioscrobbler
Generic set action for a field in the parameters being used
Name | Type | Description |
---|---|---|
$field | string | name of field to set |
$value | string | value to assign to the named field |
Type | Description |
---|---|
\Zend_Service_Audioscrobbler | Provides a fluent interface |
setHttpClient(\Zend_Http_Client $client) : void
Set Http Client
Name | Type | Description |
---|---|---|
$client | \Zend_Http_Client |
tagGetTopAlbums() : \SimpleXMLElement
Get top albums by current tag.
Type | Description |
---|---|
\SimpleXMLElement |
tagGetTopArtists() : \SimpleXMLElement
Get top artists by current tag.
Type | Description |
---|---|
\SimpleXMLElement |
tagGetTopTracks() : \SimpleXMLElement
Get Top Tracks by currently set tag.
Type | Description |
---|---|
\SimpleXMLElement |
trackGetTopFans() : \SimpleXMLElement
Get top fans of the current track.
Type | Description |
---|---|
\SimpleXMLElement |
trackGetTopTags() : \SimpleXMLElement
Get top tags of the current track.
Type | Description |
---|---|
\SimpleXMLElement |
userGetFriends() : \SimpleXMLElement
Utility function that retrieves this user's list of friends
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
userGetNeighbours() : \SimpleXMLElement
Utility function that returns a list of people with similar listening preferences to this user
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
userGetProfileInformation() : array
Utility function to get Audioscrobbler profile information (eg: Name, Gender)
Type | Description |
---|---|
array | containing information |
userGetRecentBannedTracks() : \SimpleXMLElement
Utility function that returns a list of the 10 tracks most recently banned by this user
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
userGetRecentLovedTracks() : \SimpleXMLElement
Utility function that returns a list of the 10 tracks most recently loved by this user
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
userGetRecentTracks() : \SimpleXMLElement
Utility function that returns a list of the 10 most recent tracks played by this user
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
userGetTopAlbums() : \SimpleXMLElement
Utility function to get this user's 50 most played albums
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
userGetTopArtists() : array
Utility function get this user's 50 most played artists
Type | Description |
---|---|
array | containing info |
userGetTopTags() : \SimpleXMLElement
Utility function to get this user's 50 most used tags
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
userGetTopTagsForAlbum() : \SimpleXMLElement
Utility function that returns this user's top tags for an album
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
userGetTopTagsForArtist() : \SimpleXMLElement
Utility function that returns the user's top tags used most used on a specific artist
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
userGetTopTagsForTrack() : \SimpleXMLElement
Utility function that returns this user's top tags for a track
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
userGetTopTracks() : \SimpleXML
Utility function to get this user's 50 most played tracks
Type | Description |
---|---|
\SimpleXML | object containing resut set |
userGetWeeklyAlbumChart(integer $from = NULL, integer $to = NULL) : \SimpleXMLElement
Utility function that returns weekly album chart data for this user
Name | Type | Description |
---|---|---|
$from | integer | optional UNIX timestamp for start of date range |
$to | integer | optional UNIX timestamp for end of date range |
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
userGetWeeklyArtistChart(integer $from = NULL, integer $to = NULL) : \SimpleXMLElement
Utility function that returns weekly artist chart data for this user
Name | Type | Description |
---|---|---|
$from | integer | optional UNIX timestamp for start of date range |
$to | integer | optional UNIX timestamp for end of date range |
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
userGetWeeklyChartList() : \SimpleXMLElement
Utility function that returns a list of dates of available weekly charts for a this user
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |
userGetWeeklyTrackChart(integer $from = NULL, integer $to = NULL) : \SimpleXMLElement
Utility function that returns weekly track chart data for this user
Name | Type | Description |
---|---|---|
$from | integer | optional UNIX timestamp for start of date range |
$to | integer | optional UNIX timestamp for end of date range |
Type | Description |
---|---|
\SimpleXMLElement | object containing result set |