|
Stud.IP
2.4 Revision 48548
|

Static Public Member Functions | |
| static | is_king ($user_id, $textual=FALSE) |
Data Fields | |
| const | NUM_KINGS = 1 |
| const | CACHE_KEY = 'core/kings' |
This class awards honours (crowns) to users posting a lot in the bulletin boards, writing a lot of wiki pages and so on.
|
static |
Returns the awards of a user as an associative array consisting of "award type" => "amount of posts, wiki pages etc." pairs that belong to this user. If the 2nd parameter is set to true, the values are descriptional strings instead of the raw numbers.
| string | a string containing the MD5ish ID of the user |
| bool | TRUE to return descriptional text, FALSE to return raw numbers, which is the default |

| const CACHE_KEY = 'core/kings' |
key to use for caching
| const NUM_KINGS = 1 |
How many of each type should be awarded?