diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-04-23 07:51:12 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-04-23 07:51:12 +0000 |
commit | 45250f50194cac99fde9569d8e8fd54ad89db179 (patch) | |
tree | d28b841587f77bdf3f61c16a08d5e7c1559280b8 /lib/class/artist.class.php | |
parent | 37607a70f493921c93a50f7d245568a9e8d34d63 (diff) | |
download | ampache-45250f50194cac99fde9569d8e8fd54ad89db179.tar.gz ampache-45250f50194cac99fde9569d8e8fd54ad89db179.tar.bz2 ampache-45250f50194cac99fde9569d8e8fd54ad89db179.zip |
added favorite X play links
Diffstat (limited to 'lib/class/artist.class.php')
-rw-r--r-- | lib/class/artist.class.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/class/artist.class.php b/lib/class/artist.class.php index 18fa31cf..0de280c0 100644 --- a/lib/class/artist.class.php +++ b/lib/class/artist.class.php @@ -25,11 +25,11 @@ class Artist { /* Variables from DB */ - var $id; - var $name; - var $songs; - var $albums; - var $prefix; + public $id; + public $name; + public $songs; + public $albums; + public $prefix; /** * Artist @@ -91,17 +91,17 @@ class Artist { } // get_albums - /*! - @function get_songs - @discussion gets the songs for this artist - */ + /** + * get_songs + * gets the songs for this artist + */ function get_songs() { - $sql = "SELECT song.id FROM song WHERE song.artist='" . sql_escape($this->id) . "'"; - $db_results = mysql_query($sql, dbh()); + $sql = "SELECT `song`.`id` FROM `song` WHERE `song`.`artist`='" . Dba::escape($this->id) . "'"; + $db_results = Dba::query($sql); - while ($r = mysql_fetch_assoc($db_results)) { - $results[] = new Song($r['id']); + while ($r = Dba::fetch_assoc($db_results)) { + $results[] = $r['id']; } return $results; |