From 83c7a25a76efaf74467c6654f20be3a8029040d9 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 5 Jul 2007 07:13:25 +0000 Subject: missed some requires, tweaked the lastfm class and removed an unused function from general --- modules/infotools/lastfm.class.php | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'modules/infotools/lastfm.class.php') diff --git a/modules/infotools/lastfm.class.php b/modules/infotools/lastfm.class.php index bdcf553a..4cc96ec9 100644 --- a/modules/infotools/lastfm.class.php +++ b/modules/infotools/lastfm.class.php @@ -29,17 +29,18 @@ class LastFMSearch { private $_subTag; // Stupid hack to make things come our right private $_currentTag; // Stupid hack to make things come out right - function LastFMSearch() { + public function __construct() { // Rien a faire } // LastFMSearch - /*! - @create_parser - @discussion this sets up an XML Parser - */ - function create_parser() { + /** + * create_parser + * this sets up an XML Parser that we can use to parse the XML + * document we recieve + */ + public function create_parser() { $this->_parser = xml_parser_create(); xml_parser_set_option($this->_parser, XML_OPTION_CASE_FOLDING, false); @@ -52,11 +53,11 @@ class LastFMSearch { } // create_parser - /*! - @function search - @discussion do a full search on the url they pass - */ - function run_search($url) { + /** + * search + * do a full search on the url they pass + */ + public function run_search($url) { /* Create the Parser */ $this->create_parser(); -- cgit