All Data Structures Functions Variables Pages
Static Public Member Functions
GamificationUtil Class Reference

Static Public Member Functions

static logAndNotifyOnDuplicateGameModel ($logContent)
static findGameTableRowsThatAreDuplicatedByTypePersonKey ($tableName)
static findGameTableRowsThatAreDuplicatedByPersonKey ($tableName)
static removeDuplicatesByModels (array $models, &$messageContent)

Detailed Description

Helper class for working with the gamification engine

Definition at line 40 of file GamificationUtil.php.

Member Function Documentation

static logAndNotifyOnDuplicateGameModel (   $logContent)

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:
Generated on Thu Apr 2 2020 07:10:58