Invitation
class Invitation extends UrlModel
An invitation sent to a player asking them to join a team
Constants
TABLE |
The name of the database table used for queries |
Methods
Send an invitation to join a team
Get the player receiving the invite
Get the time when the invitation will expire
Mark the invitation as having expired
Get the optional message sent to a player to join a team
Find whether there are unexpired invitations for a player and a team
Details
at line line 72
static Invitation
sendInvite(int $to, int $teamid, int|null $from = null, string $message = '', string|TimeDate|null $expiration = null)
Send an invitation to join a team
at line line 96
Player
getInvitedPlayer()
Get the player receiving the invite
at line line 106
Player
getSentBy()
Get the sender of the invite
at line line 116
Team
getTeam()
Get the team a player was invited to
at line line 126
TimeDate
getExpiration()
Get the time when the invitation will expire
at line line 136
Invitation
updateExpiration()
Mark the invitation as having expired
at line line 146
string
getText()
Get the optional message sent to a player to join a team
at line line 158
static int
hasOpenInvitation(int $player, int $team)
Find whether there are unexpired invitations for a player and a team