Documentation

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

Methods

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
self

getAll()

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>

send()

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

        
On this page

Search results