Ampache
[ class tree: Ampache ] [ index: Ampache ] [ all elements ]

Class: scrobbler

Source Location: /lib/class/scrobbler.class.php

Class Overview




Variables

Methods



Class Details

[line 22]


[ Top ]


Class Variables

$challenge =

[line 27]



Tags:

access:  public

Type:   mixed


[ Top ]

$error_msg =

[line 24]



Tags:

access:  public

Type:   mixed


[ Top ]

$password =

[line 26]



Tags:

access:  public

Type:   mixed


[ Top ]

$queued_tracks =

[line 31]



Tags:

access:  public

Type:   mixed


[ Top ]

$reset_handshake =  false

[line 32]



Tags:

access:  public

Type:   mixed


[ Top ]

$submit_host =

[line 28]



Tags:

access:  public

Type:   mixed


[ Top ]

$submit_port =

[line 29]



Tags:

access:  public

Type:   mixed


[ Top ]

$submit_url =

[line 30]



Tags:

access:  public

Type:   mixed


[ Top ]

$username =

[line 25]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 38]

scrobbler __construct( $username, $password, [ $host = ''], [ $port = ''], [ $url = ''], [ $challenge = ''])

Constructor

This is the constructer it takes a username and password




Tags:

access:  public


Parameters:

   $username  
   $password  
   $host  
   $port  
   $url  
   $challenge  

[ Top ]

method get_error_msg [line 54]

void get_error_msg( )

get_error_msg



Tags:

access:  public


[ Top ]

method get_queue_count [line 63]

void get_queue_count( )

get_queue_count



Tags:

access:  public


[ Top ]

method handshake [line 74]

void handshake( )

handshake

This does a handshake with the audioscrobber server it doesn't pass the password, but it does pass the username and has a 10 second timeout




Tags:

access:  public


[ Top ]

method queue_track [line 140]

void queue_track( $artist, $album, $title, $timestamp, $length, $track)

queue_track This queues the LastFM track by storing it in this object, it doesn't actually submit the track or talk to LastFM in anyway, kind of useless for our uses but its here, and that's how it is.



Tags:

access:  public


Parameters:

   $artist  
   $album  
   $title  
   $timestamp  
   $length  
   $track  

[ Top ]

method submit_tracks [line 165]

void submit_tracks( )

submit_tracks

This actually talks to LastFM submiting the tracks that are queued up. It passed the md5'd password combinted with the challenge, which is then md5'd




Tags:

access:  public


[ Top ]


Documentation generated on Thu, 12 Feb 2009 08:00:08 +0900 by phpDocumentor 1.4.2