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

Class: LastFMSearch

Source Location: /modules/infotools/lastfm.class.php

Class Overview




Variables

Methods



Class Details

[line 23]


[ Top ]


Class Variables

$base_url =  "http://ws.audioscrobbler.com/1.0/album"

[line 25]



Tags:

access:  protected

Type:   mixed


[ Top ]

$results = array()

[line 26]



Tags:

access:  public

Type:   mixed


[ Top ]

$_grabtags = array('coverart','large','medium','small')

[line 28]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 32]

LastFMSearch __construct( )



Tags:

access:  public


[ Top ]

method cdata [line 117]

void cdata( $parser, $cdata)

cdata

This is called for the content of an XML tag




Tags:

access:  public


Parameters:

   $parser  
   $cdata  

[ Top ]

method create_parser [line 43]

void create_parser( )

create_parser

this sets up an XML Parser that we can use to parse the XML document we recieve




Tags:

access:  public


[ Top ]

method end_element [line 132]

void end_element( $parser, $tag)

end_element

This is called on the close of an XML tag




Tags:

access:  public


Parameters:

   $parser  
   $tag  

[ Top ]

method run_search [line 60]

void run_search( $url)

search

do a full search on the url they pass




Tags:

access:  public


Parameters:

   $url  

[ Top ]

method search [line 86]

void search( $artist, $album)

search

takes terms and a type




Tags:

access:  public


Parameters:

   $artist  
   $album  

[ Top ]

method start_element [line 102]

void start_element( $parser, $tag, $attributes)

start_element

This function is called when we see the start of an xml element




Tags:

access:  public


Parameters:

   $parser  
   $tag  
   $attributes  

[ Top ]


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