Documentation

UserRanking : int
in package

User ranking titles

Table of Contents

Cases

Adept  = 5
Average  = 4
Beginner  = 2
Elite  = 7
Expert  = 6
Fledgling  = 3
Grandmaster  = 9
Master  = 8
Newbie  = 1

Methods

getMinScore()  : int
Given a rank, return the minimum score needed to achieve it (this is an inversion of getRankFromScore)
getRankFromScore()  : self
Given a score, return the associated rank

Cases

Methods

getMinScore()

Given a rank, return the minimum score needed to achieve it (this is an inversion of getRankFromScore)

public getMinScore() : int
Return values
int

getRankFromScore()

Given a score, return the associated rank

public static getRankFromScore(int $score) : self
Parameters
$score : int
Return values
self

        
On this page

Search results