From 76bdfc5b97cc2cb61866ae0126f38f397e8e4f90 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Fri, 23 Dec 2005 22:35:32 +0000 Subject: new rating class for SoundOfEmotions rating mojo --- lib/class/rating.class.php | 86 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 lib/class/rating.class.php (limited to 'lib/class/rating.class.php') diff --git a/lib/class/rating.class.php b/lib/class/rating.class.php new file mode 100644 index 00000000..6d5199a4 --- /dev/null +++ b/lib/class/rating.class.php @@ -0,0 +1,86 @@ +rating and returns the value + */ + function get_user() { + + + + } // get_user + + /** + * get_average + * Get the users average rating this is based off the floor'd average + * of what everyone has rated this album as. This is shown if there + * is no personal rating, and used for random play mojo. It sets + * $this->average_rating and returns the value + */ + function get_average() { + + + } // get_average + + /** + * set_rating + * This function sets a rating for the current $this object. + * This uses the currently logged in user for the 'user' who is rating + * the object. Returns true on success, false on failure + */ + function set_rating() { + + + + } // set_rating + +} //end rating class +?> -- cgit