Class Tasteometer

Description

Provides a method for comparing music tastes.

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


	
			
Class Constant Summary
 COMPARE_ARTIST = 'artists'
 COMPARE_MYSPACE = 'myspace'
 COMPARE_USER = 'user'
Method Summary
static array compare (integer $type1, integer $type2, mixed $value1, mixed $value2, [integer $limit = null])
Methods
static method compare (line 32)

Get a Tasteometer score from two inputs, along with a list of shared artists. If the input is a User or a Myspace URL, some additional information is returned.

  • return: An array containing comparison results, input information and shared artists.
  • throws: Error
  • access: public
static array compare (integer $type1, integer $type2, mixed $value1, mixed $value2, [integer $limit = null])
  • integer $type1: A Tasteometer comparison type. (Required)
  • integer $type2: A Tasteometer comparison type. (Required)
  • mixed $value1: A last.fm username, an array of artist names or a myspace profile URL. (Required)
  • mixed $value2: A last.fm username, an array of artist names or a myspace profile URL. (Required)
  • integer $limit: How many shared artists to display (default = 5). (Optional)
Class Constants
COMPARE_ARTIST = 'artists' (line 16)
COMPARE_MYSPACE = 'myspace' (line 17)
COMPARE_USER = 'user' (line 15)

Possible comparison types.

  • access: public

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