diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-02-10 03:49:24 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-02-10 03:49:24 +0000 |
commit | addb6f957fd9fb06d2c90ba78bbd73e6f13e424f (patch) | |
tree | c0c44e5aedff216c6ad82a9cc043f871a11d7042 /lib/class/song.class.php | |
parent | 58900248ccdb00f5f6f591d4fe9cda3cd607be55 (diff) | |
download | ampache-addb6f957fd9fb06d2c90ba78bbd73e6f13e424f.tar.gz ampache-addb6f957fd9fb06d2c90ba78bbd73e6f13e424f.tar.bz2 ampache-addb6f957fd9fb06d2c90ba78bbd73e6f13e424f.zip |
broke the advanced random stuff, only ui in place for new stuff...
Diffstat (limited to 'lib/class/song.class.php')
-rw-r--r-- | lib/class/song.class.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/class/song.class.php b/lib/class/song.class.php index bfe1e628..2fc034bb 100644 --- a/lib/class/song.class.php +++ b/lib/class/song.class.php @@ -353,6 +353,7 @@ class Song extends database_object implements media { return $array; } // compare_song_information + /** * update @@ -735,6 +736,28 @@ class Song extends database_object implements media { } // format_pattern /** + * get_fields + * This returns all of the 'data' fields for this object, we need to filter out some that we don't + * want to present to a user, and add some that don't exist directly on the object but are related + */ + public static function get_fields() { + + $fields = get_class_vars('Song'); + + unset($fields['id'],$fields['_transcoded'],$fields['_fake'],$fields['cache_hit'],$fields['mime'],$fields['type']); + + // Some additional fields + $fields['tag'] = true; + $fields['catalog'] = true; +//FIXME: These are here to keep the ideas, don't want to have to worry about them for now +// $fields['rating'] = true; +// $fields['recently Played'] = true; + + return $fields; + + } // get_fields + + /** * get_from_path * This returns all of the songs that exist under the specified path */ |