AllianceInvite
in package
Object interfacing with the alliance_invites_player table.
Table of Contents
Properties
- $allianceID : int
- $expires : int
- $gameID : int
- $messageID : int
- $receiverAccountID : int
- $senderAccountID : int
Methods
- __construct() : mixed
- delete() : void
- get() : self
- Get the alliance invitation for a single recipient, if not expired
- getAll() : array<string|int, self>
- Get all unexpired invitations for the given alliance
- getExpires() : int
- getReceiver() : AbstractPlayer
- getSender() : AbstractPlayer
- send() : void
Properties
$allianceID read-only
private
int
$allianceID
$expires read-only
private
int
$expires
$gameID read-only
private
int
$gameID
$messageID read-only
private
int
$messageID
$receiverAccountID read-only
private
int
$receiverAccountID
$senderAccountID read-only
private
int
$senderAccountID
Methods
__construct()
public
__construct(DatabaseRecord $dbRecord) : mixed
Parameters
- $dbRecord : DatabaseRecord
delete()
public
delete() : void
get()
Get the alliance invitation for a single recipient, if not expired
public
static get(int $allianceID, int $gameID, int $receiverAccountID) : self
Parameters
- $allianceID : int
- $gameID : int
- $receiverAccountID : int
Return values
selfgetAll()
Get all unexpired invitations for the given alliance
public
static getAll(int $allianceID, int $gameID) : array<string|int, self>
Parameters
- $allianceID : int
- $gameID : int
Return values
array<string|int, self>getExpires()
public
getExpires() : int
Return values
intgetReceiver()
public
getReceiver() : AbstractPlayer
Return values
AbstractPlayergetSender()
public
getSender() : AbstractPlayer
Return values
AbstractPlayersend()
public
static send(int $allianceID, int $gameID, int $receiverAccountID, int $senderAccountID, int $messageID, int $expires) : void
Parameters
- $allianceID : int
- $gameID : int
- $receiverAccountID : int
- $senderAccountID : int
- $messageID : int
- $expires : int