[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Service/ -> Audioscrobbler.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 681 lines (20 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Service_Audioscrobbler:: (42 methods):
  __construct()
  setHttpClient()
  getHttpClient()
  lazyLoadHttpClient()
  get()
  set()
  _getInfo()
  userGetProfileInformation()
  userGetTopArtists()
  userGetTopAlbums()
  userGetTopTracks()
  userGetTopTags()
  userGetTopTagsForArtist()
  userGetTopTagsForAlbum()
  userGetTopTagsForTrack()
  userGetFriends()
  userGetNeighbours()
  userGetRecentTracks()
  userGetRecentBannedTracks()
  userGetRecentLovedTracks()
  userGetWeeklyChartList()
  userGetWeeklyAlbumChart()
  userGetWeeklyArtistChart()
  userGetWeeklyTrackChart()
  artistGetRelatedArtists()
  artistGetTopFans()
  artistGetTopTracks()
  artistGetTopAlbums()
  artistGetTopTags()
  albumGetInfo()
  trackGetTopFans()
  trackGetTopTags()
  tagGetTopTags()
  tagGetTopAlbums()
  tagGetTopArtists()
  tagGetTopTracks()
  groupGetWeeklyChartList()
  groupGetWeeklyArtistChartList()
  groupGetWeeklyTrackChartList()
  groupGetWeeklyAlbumChartList()
  _errorHandler()
  __call()


Class: Zend_Service_Audioscrobbler  - X-Ref


__construct()   X-Ref
Sets up character encoding, instantiates the HTTP client, and assigns the web service version.


setHttpClient(Zend_Http_Client $client)   X-Ref
Set Http Client

param: Zend_Http_Client $client

getHttpClient()   X-Ref
Get current http client.

return: Zend_Http_Client

lazyLoadHttpClient()   X-Ref
Lazy load Http Client if none is instantiated yet.

return: void

get($field)   X-Ref
Returns a field value, or false if the named field does not exist

param: string $field
return: string|false

set($field, $value)   X-Ref
Generic set action for a field in the parameters being used

param: string $field name of field to set
param: string $value value to assign to the named field
return: Zend_Service_Audioscrobbler Provides a fluent interface

_getInfo($service, $params = null)   X-Ref
Protected method that queries REST service and returns SimpleXML response set

param: string $service name of Audioscrobbler service file we're accessing
param: string $params  parameters that we send to the service if needded
return: SimpleXMLElement result set

userGetProfileInformation()   X-Ref
Utility function to get Audioscrobbler profile information (eg: Name, Gender)

return: array containing information

userGetTopArtists()   X-Ref
Utility function get this user's 50 most played artists

return: array containing info

userGetTopAlbums()   X-Ref
Utility function to get this user's 50 most played albums

return: SimpleXMLElement object containing result set

userGetTopTracks()   X-Ref
Utility function to get this user's 50 most played tracks

return: SimpleXML object containing resut set

userGetTopTags()   X-Ref
Utility function to get this user's 50 most used tags

return: SimpleXMLElement object containing result set

userGetTopTagsForArtist()   X-Ref
Utility function that returns the user's top tags used most used on a specific artist

return: SimpleXMLElement object containing result set

userGetTopTagsForAlbum()   X-Ref
Utility function that returns this user's top tags for an album

return: SimpleXMLElement object containing result set

userGetTopTagsForTrack()   X-Ref
Utility function that returns this user's top tags for a track

return: SimpleXMLElement object containing result set

userGetFriends()   X-Ref
Utility function that retrieves this user's list of friends

return: SimpleXMLElement object containing result set

userGetNeighbours()   X-Ref
Utility function that returns a list of people with similar listening preferences to this user

return: SimpleXMLElement object containing result set

userGetRecentTracks()   X-Ref
Utility function that returns a list of the 10 most recent tracks played by this user

return: SimpleXMLElement object containing result set

userGetRecentBannedTracks()   X-Ref
Utility function that returns a list of the 10 tracks most recently banned by this user

return: SimpleXMLElement object containing result set

userGetRecentLovedTracks()   X-Ref
Utility function that returns a list of the 10 tracks most recently loved by this user

return: SimpleXMLElement object containing result set

userGetWeeklyChartList()   X-Ref
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

return: SimpleXMLElement object containing result set

userGetWeeklyAlbumChart($from = NULL, $to = NULL)   X-Ref
Utility function that returns weekly album chart data for this user

param: integer $from optional UNIX timestamp for start of date range
param: integer $to optional UNIX timestamp for end of date range
return: SimpleXMLElement object containing result set

userGetWeeklyArtistChart($from = NULL, $to = NULL)   X-Ref
Utility function that returns weekly artist chart data for this user

param: integer $from optional UNIX timestamp for start of date range
param: integer $to optional UNIX timestamp for end of date range
return: SimpleXMLElement object containing result set

userGetWeeklyTrackChart($from = NULL, $to = NULL)   X-Ref
Utility function that returns weekly track chart data for this user

param: integer $from optional UNIX timestamp for start of date range
param: integer $to optional UNIX timestamp for end of date range
return: SimpleXMLElement object containing result set

artistGetRelatedArtists()   X-Ref
Utility function that returns a list of artists similiar to this artist

return: SimpleXMLElement object containing result set

artistGetTopFans()   X-Ref
Utility function that returns a list of this artist's top listeners

return: SimpleXMLElement object containing result set

artistGetTopTracks()   X-Ref
Utility function that returns a list of this artist's top-rated tracks

return: SimpleXMLElement object containing result set

artistGetTopAlbums()   X-Ref
Utility function that returns a list of this artist's top-rated albums

return: SimpleXMLElement object containing result set

artistGetTopTags()   X-Ref
Utility function that returns a list of this artist's top-rated tags

return: SimpleXMLElement object containing result set

albumGetInfo()   X-Ref
Get information about an album

return: SimpleXMLElement

trackGetTopFans()   X-Ref
Get top fans of the current track.

return: SimpleXMLElement

trackGetTopTags()   X-Ref
Get top tags of the current track.

return: SimpleXMLElement

tagGetTopTags()   X-Ref
Get Top Tags.

return: SimpleXMLElement

tagGetTopAlbums()   X-Ref
Get top albums by current tag.

return: SimpleXMLElement

tagGetTopArtists()   X-Ref
Get top artists by current tag.

return: SimpleXMLElement

tagGetTopTracks()   X-Ref
Get Top Tracks by currently set tag.

return: SimpleXMLElement

groupGetWeeklyChartList()   X-Ref
Get weekly chart list by current set group.

return: SimpleXMLElement

groupGetWeeklyArtistChartList($from = NULL, $to = NULL)   X-Ref
Retrieve weekly Artist Charts

param: int $from
param: int $to
return: SimpleXMLElement

groupGetWeeklyTrackChartList($from = NULL, $to = NULL)   X-Ref
Retrieve Weekly Track Charts

param: int $from
param: int $to
return: SimpleXMLElement

groupGetWeeklyAlbumChartList($from = NULL, $to = NULL)   X-Ref
Retrieve Weekly album charts.

param: int $from
param: int $to
return: SimpleXMLElement

_errorHandler($errno, $errstr, $errfile, $errline, array $errcontext)   X-Ref
Saves the provided error information to this instance

param: integer $errno
param: string  $errstr
param: string  $errfile
param: integer $errline
param: array   $errcontext
return: void

__call($method, $args)   X-Ref
Call Intercept for set($name, $field)

param: string $method
param: array  $args
return: Zend_Service_Audioscrobbler



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1