Function Module_admin_leader_board->get_form_fields
Definitions
adminzone/pages/modules/admin_leader_board.php
- Get Tempcode for adding/editing form.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$id | ?AUTO_LINK | Null | N/A | N/A | The ID of the leader-board (null: not added yet) |
$title | SHORT_TEXT | Blank (empty string) | N/A | N/A | A title for this leader-board |
$board_type | SHORT_TEXT | holders | N/A | N/A | The type of leader-board |
$member_count | integer | 10 | N/A | N/A | The size of the leader-board |
$timeframe | SHORT_TEXT | week | N/A | N/A | The frequency of this leader-board |
$rolling | BINARY | 0 | N/A | N/A | Whether or not this leader-board generation time is rolling |
$include_staff | BINARY | 0 | N/A | N/A | Whether to include staff in the leader-board |
$usergroups | array | [] | N/A | N/A | Only allow members in one or more defined usergroup IDs to be included in the leader-board (empty: allow all usergroups) |
$calculate_voting_power | BINARY | 0 | N/A | N/A | Whether this leader-board should calculate voting powers and control percentages and also display those |
Return
- A pair: The input fields, Hidden fields
- Type: array
- Set: N/A
- Range: N/A