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

Class: AmpacheLastfm

Source Location: /modules/plugins/Lastfm.plugin.php

Class Overview




Variables

Methods



Class Details

[line 22]


[ Top ]


Class Variables

$description = 'Records your played songs to your Last.FM Account'

[line 25]



Tags:

access:  public

Type:   mixed


[ Top ]

$max_ampache = '340008'

[line 29]



Tags:

access:  public

Type:   mixed


[ Top ]

$min_ampache = '340007'

[line 28]



Tags:

access:  public

Type:   mixed


[ Top ]

$name = 'Last.FM'

[line 24]



Tags:

access:  public

Type:   mixed


[ Top ]

$url = ''

[line 26]



Tags:

access:  public

Type:   mixed


[ Top ]

$version = '000003'

[line 27]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 44]

AmpacheLastfm __construct( )

Constructor This function does nothing...



Tags:

access:  public


[ Top ]

method install [line 55]

void install( )

install

This is a required plugin function it inserts the required preferences into Ampache




Tags:

access:  public


[ Top ]

method load [line 178]

void load( $data, $user_id)

load

This loads up the data we need into this object, this stuff comes from the preferences it's passed as a key'd array




Tags:

access:  public


Parameters:

   $data  
   $user_id  

[ Top ]

method set_handshake [line 148]

void set_handshake( $user_id)

set_handshake

This runs a handshake and properly updates the preferences as needed, it returns the data as an array so we don't have to requery the db. This requires a userid so it knows who's crap to update




Tags:

access:  public


Parameters:

   $user_id  

[ Top ]

method submit [line 92]

void submit( $song, $user_id)

submit

This takes care of queueing and then submiting the tracks eventually this will make sure that you've haven't




Tags:

access:  public


Parameters:

   $song  
   $user_id  

[ Top ]

method uninstall [line 76]

void uninstall( )

uninstall

This is a required plugin function it removes the required preferences from the database returning it to its origional form




Tags:

access:  public


[ Top ]


Documentation generated on Thu, 12 Feb 2009 07:59:59 +0900 by phpDocumentor 1.4.2