Developers that have produced Web sites that maintain games often have the need to keep track of game records like high score tables that register the user and the score that was achieved in a given moment.
This class provides a generic solution to maintain high score tables that can be used by almost any type of game that is based on scores achieved by individual players.
This class is meant to manage the information of scores of games played by individual users. The information is stored in SQL based database.
The class provides a function to submit a score given the game name, the player user, and score as an integer value. It also has functions to retrieve the high scores table, as well individual user scores and rankings for this week and the previous week.