XG Proyect

Alliances extends Model
in package

Alliances Class

Table of Contents

$db  : Database
Contains the Database instance
__construct()  : mixed
Constructor
__destruct()  : mixed
Destructor
checkAllianceByNameOrTag()  : array<string|int, mixed>|null
Check if an alliance exists verifying its name or tag
checkAllianceFounder()  : bool
Check if it is the alliance founder
checkAllianceName()  : bool
Check if the alliance name exists
checkAllianceTag()  : bool
Check if the alliance tag exists
countAllianceMembers()  : array<string|int, mixed>
Get an alliance members count
getAllAllianceDataById()  : array<string|int, mixed>
Get all alliance data
getAllianceMembers()  : array<string|int, mixed>
Get all the alliance members
getAllUsers()  : array<string|int, mixed>
Get all users
removeAllianceMembers()  : void
Remove alliance members
updateAllianceData()  : void
Update the alliance data
updateAllianceRanks()  : mixed
Update alliance ranks
setNewDb()  : void
Creates a new Database object

Properties

Methods

__construct()

Constructor

public __construct() : mixed
Return values
mixed

__destruct()

Destructor

public __destruct() : mixed
Return values
mixed

checkAllianceByNameOrTag()

Check if an alliance exists verifying its name or tag

public checkAllianceByNameOrTag(string $alliance) : array<string|int, mixed>|null
Parameters
$alliance : string
Return values
array<string|int, mixed>|null

checkAllianceFounder()

Check if it is the alliance founder

public checkAllianceFounder(int $user_id) : bool
Parameters
$user_id : int
Return values
bool

checkAllianceName()

Check if the alliance name exists

public checkAllianceName(string $alliance_name) : bool
Parameters
$alliance_name : string
Return values
bool

checkAllianceTag()

Check if the alliance tag exists

public checkAllianceTag(string $alliance_tag) : bool
Parameters
$alliance_tag : string
Return values
bool

countAllianceMembers()

Get an alliance members count

public countAllianceMembers(int $alliance_id) : array<string|int, mixed>
Parameters
$alliance_id : int
Return values
array<string|int, mixed>

getAllAllianceDataById()

Get all alliance data

public getAllAllianceDataById(int $id) : array<string|int, mixed>
Parameters
$id : int
Return values
array<string|int, mixed>

getAllianceMembers()

Get all the alliance members

public getAllianceMembers(int $alliance_id) : array<string|int, mixed>
Parameters
$alliance_id : int
Return values
array<string|int, mixed>

getAllUsers()

Get all users

public getAllUsers() : array<string|int, mixed>
Return values
array<string|int, mixed>

removeAllianceMembers()

Remove alliance members

public removeAllianceMembers(string $ids_string) : void
Parameters
$ids_string : string
Return values
void

updateAllianceData()

Update the alliance data

public updateAllianceData(array<string|int, mixed> $alliance_data) : void
Parameters
$alliance_data : array<string|int, mixed>
Return values
void

updateAllianceRanks()

Update alliance ranks

public updateAllianceRanks(int $alliance_id, string $ranks) : mixed
Parameters
$alliance_id : int

Alliance ID

$ranks : string

Ranks

Return values
mixed

setNewDb()

Creates a new Database object

private setNewDb() : void
Return values
void

Search results