Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
Static Public Member Functions | Static Protected Member Functions
GameBadgeRules Class Reference
Inheritance diagram for GameBadgeRules:
CreateAccountGameBadgeRules CreateCallGameBadgeRules CreateCampaignGameBadgeRules CreateCommentGameBadgeRules CreateContactGameBadgeRules CreateConversationGameBadgeRules CreateEmailTemplateGameBadgeRules CreateLeadGameBadgeRules CreateMarketingListGameBadgeRules CreateMeetingGameBadgeRules CreateMissionGameBadgeRules CreateNoteGameBadgeRules CreateOpportunityGameBadgeRules CreateProductGameBadgeRules CreateProductTemplateGameBadgeRules CreateProjectGameBadgeRules CreateReportGameBadgeRules CreateSocialItemGameBadgeRules CreateTaskGameBadgeRules CreateWorkflowGameBadgeRules EarlyBirdGameBadgeRules LoginUserGameBadgeRules MassEditModelsGameBadgeRules NightOwlGameBadgeRules SearchModelsGameBadgeRules WinOpportunityGameBadgeRules

Static Public Member Functions

static getPassiveDisplayLabel ($value)
 
static getItemCountByGrade ($grade)
 
static getType ()
 
static getBadgeRulesData ()
 
static badgeGradeUserShouldHaveByPointsAndScores ($userPointsByType, $userScoresByType)
 
static hasBonusPointsOnCreation ()
 
static hasBonusPointsOnGradeChange ()
 
static getNewBonusPointType ()
 
static getNewBonusPointValue ()
 
static getGradeBonusPointType ()
 
static getGradeBonusPointValue ($grade)
 

Static Protected Member Functions

static getBadgeGradeByValue ($value)
 

Detailed Description

Base class defining rules for game badges

Definition at line 40 of file GameBadgeRules.php.

Member Function Documentation

static getItemCountByGrade (   $grade)
static
Parameters
int$grade

Definition at line 50 of file GameBadgeRules.php.

static getType ( )
static
Returns
The type of the GameBadgeRules

Definition at line 59 of file GameBadgeRules.php.

static getBadgeRulesData ( )
static
Returns
array of available badge rule class names

Definition at line 69 of file GameBadgeRules.php.

static badgeGradeUserShouldHaveByPointsAndScores (   $userPointsByType,
  $userScoresByType 
)
static

Given a user's points and scores, determine if the user should have this badge. And if so, which 'grade' the badge should be.

Parameters
array$userPointsByType
array$userScoresByType
Returns
integer. Returns 0 if the user should not have this badge.

Definition at line 95 of file GameBadgeRules.php.

static getBadgeGradeByValue (   $value)
staticprotected
Parameters
int$value

Definition at line 105 of file GameBadgeRules.php.

static hasBonusPointsOnCreation ( )
static

For a given badge, when it is first received by a user, are there bonus points?

Returns
boolean.

Definition at line 123 of file GameBadgeRules.php.

static hasBonusPointsOnGradeChange ( )
static

For a given badge, when it has a grade change for a user, are there bonus points?

Returns
boolean.

Definition at line 132 of file GameBadgeRules.php.

static getNewBonusPointType ( )
static
Returns
null if no bonus points for receiving the badge, or returns integer.

Definition at line 140 of file GameBadgeRules.php.

static getNewBonusPointValue ( )
static

Implement in child class.

Returns
null if no bonus points for changing the grade of a badge, or returns integer.

Definition at line 149 of file GameBadgeRules.php.

static getGradeBonusPointType ( )
static
Returns
Point type of the bonus points.

Definition at line 157 of file GameBadgeRules.php.

static getGradeBonusPointValue (   $grade)
static
Parameters
integer$grade
Returns
integer of point value based on specified grade.

Definition at line 166 of file GameBadgeRules.php.


The documentation for this class was generated from the following file:
Generated on Tue Sep 22 2020 07:10:47
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.