diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-23 11:32:24 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-23 13:03:14 -0500 |
commit | fd214fdcb78a8e5a23462b9206f35f707bb19ba7 (patch) | |
tree | c77a8870620b819f88191899cfc35715e367c277 /lib/class/rating.class.php | |
parent | 4dca7a57b05de6efa38828eb3c90549a1d07857c (diff) | |
download | ampache-fd214fdcb78a8e5a23462b9206f35f707bb19ba7.tar.gz ampache-fd214fdcb78a8e5a23462b9206f35f707bb19ba7.tar.bz2 ampache-fd214fdcb78a8e5a23462b9206f35f707bb19ba7.zip |
Mess around with ratings
Drop the public variables from the rating class; everyone should use the
getters.
Add the ability for themes and applications to distinguish between
a user's actual rating and the global average rating; in the web
interface the average shows up if a user hasn't rated something but at
least one other user has.
Diffstat (limited to 'lib/class/rating.class.php')
-rw-r--r-- | lib/class/rating.class.php | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/class/rating.class.php b/lib/class/rating.class.php index 5a85c220..3b89f9c1 100644 --- a/lib/class/rating.class.php +++ b/lib/class/rating.class.php @@ -41,8 +41,6 @@ class Rating extends database_object { // Public variables public $id; // The ID of the object rated public $type; // The type of object we want - public $rating; // Integer rating - public $preciserating; // Decimal rating /** * Constructor @@ -56,13 +54,6 @@ class Rating extends database_object { $this->id = $id; $this->type = $type; - if (! $rating = $this->get_user_rating()) { - $rating = $this->get_average_rating(); - } - - $this->rating = floor($rating); - $this->preciserating = $rating; - return true; } // Constructor |