CouncilVoting
in package
Collection of functions to help process council voting.
Table of Contents
Methods
- checkPacts() : void
- countVotes() : array{YES: int, NO: int}
- deleteVote() : void
- modifyRelations() : void
Methods
checkPacts()
public
static checkPacts(int $race_id_1, int $gameID) : void
Parameters
- $race_id_1 : int
- $gameID : int
countVotes()
public
static countVotes(int $race_id_1, int $race_id_2, int $gameID) : array{YES: int, NO: int}
Parameters
- $race_id_1 : int
- $race_id_2 : int
- $gameID : int
Return values
array{YES: int, NO: int} —Number of yes and no votes
deleteVote()
public
static deleteVote(int $race_id_1, int $race_id_2, int $gameID, string $type) : void
Parameters
- $race_id_1 : int
- $race_id_2 : int
- $gameID : int
- $type : string
modifyRelations()
public
static modifyRelations(int $race_id_1, int $gameID) : void
Parameters
- $race_id_1 : int
- $gameID : int