Zend Framework
1.12
|
Public Member Functions | |
__construct () | |
Sets up character encoding, instantiates the HTTP client, and assigns the web service version. | |
setHttpClient (Zend_Http_Client $client) | |
Set Http Client. | |
getHttpClient () | |
Get current http client. | |
get ($field) | |
Returns a field value, or false if the named field does not exist. | |
set ($field, $value) | |
Generic set action for a field in the parameters being used. | |
userGetProfileInformation () | |
Utility function to get Audioscrobbler profile information (eg: Name, Gender) | |
userGetTopArtists () | |
Utility function get this user's 50 most played artists. | |
userGetTopAlbums () | |
Utility function to get this user's 50 most played albums. | |
userGetTopTracks () | |
Utility function to get this user's 50 most played tracks. | |
userGetTopTags () | |
Utility function to get this user's 50 most used tags. | |
userGetTopTagsForArtist () | |
Utility function that returns the user's top tags used most used on a specific artist. | |
userGetTopTagsForAlbum () | |
Utility function that returns this user's top tags for an album. | |
userGetTopTagsForTrack () | |
Utility function that returns this user's top tags for a track. | |
userGetFriends () | |
Utility function that retrieves this user's list of friends. | |
userGetNeighbours () | |
Utility function that returns a list of people with similar listening preferences to this user. | |
userGetRecentTracks () | |
Utility function that returns a list of the 10 most recent tracks played by this user. | |
userGetRecentBannedTracks () | |
Utility function that returns a list of the 10 tracks most recently banned by this user. | |
userGetRecentLovedTracks () | |
Utility function that returns a list of the 10 tracks most recently loved by this user. | |
userGetWeeklyChartList () | |
Utility function that returns a list of dates of available weekly charts for a this user. | |
userGetWeeklyAlbumChart ($from=NULL, $to=NULL) | |
Utility function that returns weekly album chart data for this user. | |
userGetWeeklyArtistChart ($from=NULL, $to=NULL) | |
Utility function that returns weekly artist chart data for this user. | |
userGetWeeklyTrackChart ($from=NULL, $to=NULL) | |
Utility function that returns weekly track chart data for this user. | |
artistGetRelatedArtists () | |
Utility function that returns a list of artists similiar to this artist. | |
artistGetTopFans () | |
Utility function that returns a list of this artist's top listeners. | |
artistGetTopTracks () | |
Utility function that returns a list of this artist's top-rated tracks. | |
artistGetTopAlbums () | |
Utility function that returns a list of this artist's top-rated albums. | |
artistGetTopTags () | |
Utility function that returns a list of this artist's top-rated tags. | |
albumGetInfo () | |
Get information about an album. | |
trackGetTopFans () | |
Get top fans of the current track. | |
trackGetTopTags () | |
Get top tags of the current track. | |
tagGetTopTags () | |
Get Top Tags. | |
tagGetTopAlbums () | |
Get top albums by current tag. | |
tagGetTopArtists () | |
Get top artists by current tag. | |
tagGetTopTracks () | |
Get Top Tracks by currently set tag. | |
groupGetWeeklyChartList () | |
Get weekly chart list by current set group. | |
groupGetWeeklyArtistChartList ($from=NULL, $to=NULL) | |
Retrieve weekly Artist Charts. | |
groupGetWeeklyTrackChartList ($from=NULL, $to=NULL) | |
Retrieve Weekly Track Charts. | |
groupGetWeeklyAlbumChartList ($from=NULL, $to=NULL) | |
Retrieve Weekly album charts. | |
_errorHandler ($errno, $errstr, $errfile, $errline, array $errcontext) | |
Saves the provided error information to this instance. | |
__call ($method, $args) | |
Call Intercept for set($name, $field) | |
Protected Member Functions | |
lazyLoadHttpClient () | |
Lazy load Http Client if none is instantiated yet. | |
_getInfo ($service, $params=null) | |
Protected method that queries REST service and returns SimpleXML response set. | |
Protected Attributes | |
$_client | |
$_params | |
$_error = null | |
__construct | ( | ) |
Sets up character encoding, instantiates the HTTP client, and assigns the web service version.
__call | ( | $method, | |
$args | |||
) |
Call Intercept for set($name, $field)
string | $method | |
array | $args |
_errorHandler | ( | $errno, | |
$errstr, | |||
$errfile, | |||
$errline, | |||
array | $errcontext | ||
) |
Saves the provided error information to this instance.
integer | $errno | |
string | $errstr | |
string | $errfile | |
integer | $errline | |
array | $errcontext |
|
protected |
Protected method that queries REST service and returns SimpleXML response set.
string | $service | name of Audioscrobbler service file we're accessing |
string | $params | parameters that we send to the service if needded |
Zend_Http_Client_Exception | |
Zend_Service_Exception |
albumGetInfo | ( | ) |
Get information about an album.
artistGetRelatedArtists | ( | ) |
Utility function that returns a list of artists similiar to this artist.
artistGetTopAlbums | ( | ) |
Utility function that returns a list of this artist's top-rated albums.
artistGetTopFans | ( | ) |
Utility function that returns a list of this artist's top listeners.
artistGetTopTags | ( | ) |
Utility function that returns a list of this artist's top-rated tags.
artistGetTopTracks | ( | ) |
Utility function that returns a list of this artist's top-rated tracks.
get | ( | $field | ) |
Returns a field value, or false if the named field does not exist.
string | $field |
getHttpClient | ( | ) |
Get current http client.
groupGetWeeklyAlbumChartList | ( | $from = NULL , |
|
$to = NULL |
|||
) |
Retrieve Weekly album charts.
int | $from | |
int | $to |
groupGetWeeklyArtistChartList | ( | $from = NULL , |
|
$to = NULL |
|||
) |
Retrieve weekly Artist Charts.
int | $from | |
int | $to |
groupGetWeeklyChartList | ( | ) |
groupGetWeeklyTrackChartList | ( | $from = NULL , |
|
$to = NULL |
|||
) |
Retrieve Weekly Track Charts.
int | $from | |
int | $to |
|
protected |
Lazy load Http Client if none is instantiated yet.
set | ( | $field, | |
$value | |||
) |
Generic set action for a field in the parameters being used.
string | $field | name of field to set |
string | $value | value to assign to the named field |
setHttpClient | ( | Zend_Http_Client | $client | ) |
Set Http Client.
Zend_Http_Client | $client |
tagGetTopAlbums | ( | ) |
Get top albums by current tag.
tagGetTopArtists | ( | ) |
Get top artists by current tag.
tagGetTopTags | ( | ) |
Get Top Tags.
tagGetTopTracks | ( | ) |
Get Top Tracks by currently set tag.
trackGetTopFans | ( | ) |
Get top fans of the current track.
trackGetTopTags | ( | ) |
Get top tags of the current track.
userGetFriends | ( | ) |
Utility function that retrieves this user's list of friends.
userGetNeighbours | ( | ) |
Utility function that returns a list of people with similar listening preferences to this user.
userGetProfileInformation | ( | ) |
Utility function to get Audioscrobbler profile information (eg: Name, Gender)
userGetRecentBannedTracks | ( | ) |
Utility function that returns a list of the 10 tracks most recently banned by this user.
userGetRecentLovedTracks | ( | ) |
Utility function that returns a list of the 10 tracks most recently loved by this user.
userGetRecentTracks | ( | ) |
Utility function that returns a list of the 10 most recent tracks played by this user.
userGetTopAlbums | ( | ) |
Utility function to get this user's 50 most played albums.
userGetTopArtists | ( | ) |
Utility function get this user's 50 most played artists.
userGetTopTags | ( | ) |
Utility function to get this user's 50 most used tags.
userGetTopTagsForAlbum | ( | ) |
Utility function that returns this user's top tags for an album.
userGetTopTagsForArtist | ( | ) |
Utility function that returns the user's top tags used most used on a specific artist.
userGetTopTagsForTrack | ( | ) |
Utility function that returns this user's top tags for a track.
userGetTopTracks | ( | ) |
Utility function to get this user's 50 most played tracks.
userGetWeeklyAlbumChart | ( | $from = NULL , |
|
$to = NULL |
|||
) |
Utility function that returns weekly album chart data for this user.
integer | $from | optional UNIX timestamp for start of date range |
integer | $to | optional UNIX timestamp for end of date range |
userGetWeeklyArtistChart | ( | $from = NULL , |
|
$to = NULL |
|||
) |
Utility function that returns weekly artist chart data for this user.
integer | $from | optional UNIX timestamp for start of date range |
integer | $to | optional UNIX timestamp for end of date range |
userGetWeeklyChartList | ( | ) |
Utility function that returns a list of dates of available weekly charts for a this user.
Should actually be named userGetWeeklyChartDateList() but we have to follow audioscrobbler's naming
userGetWeeklyTrackChart | ( | $from = NULL , |
|
$to = NULL |
|||
) |
Utility function that returns weekly track chart data for this user.
integer | $from | optional UNIX timestamp for start of date range |
integer | $to | optional UNIX timestamp for end of date range |
|
protected |
|
protected |
|
protected |