GamificationUtil Class Reference
Static Public Member Functions
|static ||logAndNotifyOnDuplicateGameModel ($logContent)|
static ||findGameTableRowsThatAreDuplicatedByTypePersonKey ($tableName)|
static ||findGameTableRowsThatAreDuplicatedByPersonKey ($tableName)|
static ||removeDuplicatesByModels (array $models, &$messageContent)|
Helper class for working with the gamification engine
Definition at line 40 of file GamificationUtil.php.
Member Function Documentation
This method replaces previous usage of throwing an exception when a game model like gamePoint was retrieved for a person and there was more than one. For a given person/type there should only be one. It is possible though that 2 endRequestBehaviors occur simultaneously for the same user. An example is if the user is using 2 browser tabs at once and submits a page request simultaneously. Currently there is not much that can be done to avoid this so instead of failing we will now log this to the application.log and notify the super user that the Repair Gamification tool should be run. This tool is located under developer tools.
Definition at line 51 of file GamificationUtil.php.
The documentation for this class was generated from the following file:
: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in
: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in