Class Group

Description

Provides different methods to query group information.

Located in /src/Group.php (line 9)


	
			
Method Summary
static array getMembers (string $group)
static array getWeeklyAlbumChart (string $group, [integer $from = null], [integer $to = null])
static array getWeeklyArtistChart (string $group, [integer $from = null], [integer $to = null])
static array getWeeklyChartList (string $group)
static array getWeeklyTrackChart (string $group, [integer $from = null], [integer $to = null])
Methods
static method getMembers (line 19)

Get a list of members for this group.

  • return: An array of User objects.
  • throws: Error
  • access: public
static array getMembers (string $group)
  • string $group: The group name to fetch the members of. (Required)
static method getWeeklyAlbumChart (line 51)

Get an album chart for a group, for a given date range. If no date range is supplied, it will return the most recent album chart for this group.

  • return: An array of Album objects.
  • throws: Error
  • access: public
static array getWeeklyAlbumChart (string $group, [integer $from = null], [integer $to = null])
  • string $group: The last.fm group name to fetch the charts of. (Required)
  • integer $from: The date at which the chart should start from. See getWeeklyChartList for more. (Optional)
  • integer $to: The date at which the chart should end on. See getWeeklyChartList for more. (Optional)
static method getWeeklyArtistChart (line 78)

Get an artist chart for a group, for a given date range. If no date range is supplied, it will return the most recent album chart for this group.

  • return: An array of Artist objects.
  • throws: Error
  • access: public
static array getWeeklyArtistChart (string $group, [integer $from = null], [integer $to = null])
  • string $group: The last.fm group name to fetch the charts of. (Required)
  • integer $from: The date at which the chart should start from. See getWeeklyChartList for more. (Optional)
  • integer $to: The date at which the chart should end on. See getWeeklyChartList for more. (Optional)
static method getWeeklyChartList (line 103)

Get a list of available charts for this group, expressed as date ranges which can be sent to the chart services.

  • return: An array of from/to unix timestamp pairs.
  • throws: Error
  • access: public
static array getWeeklyChartList (string $group)
  • string $group: The last.fm group name to fetch the charts list for. (Required)
static method getWeeklyTrackChart (line 131)

Get a track chart for a group, for a given date range. If no date range is supplied, it will return the most recent album chart for this group.

  • return: An array of Track objects.
  • throws: Error
  • access: public
static array getWeeklyTrackChart (string $group, [integer $from = null], [integer $to = null])
  • string $group: The last.fm group name to fetch the charts of. (Required)
  • integer $from: The date at which the chart should start from. See getWeeklyChartList for more. (Optional)
  • integer $to: The date at which the chart should end on. See getWeeklyChartList for more. (Optional)

Documentation generated on Mon, 22 Dec 2008 16:57:37 +0100 by phpDocumentor 1.4.1