Statistics
extends Model
in package
Statistics Class
Table of Contents
- $db : Database
- Contains the Database instance
- __construct() : mixed
- Constructor
- __destruct() : mixed
- Destructor
- countAlliances() : int
- Get the amount of alliances
- getAlliances() : array<string|int, mixed>|null
- Get list of alliances and their statistics
- getUsers() : array<string|int, mixed>|null
- Get list of users and their statistics
- setNewDb() : void
- Creates a new Database object
Properties
$db
Contains the Database instance
protected
Database
$db
Methods
__construct()
Constructor
public
__construct() : mixed
Return values
mixed —__destruct()
Destructor
public
__destruct() : mixed
Return values
mixed —countAlliances()
Get the amount of alliances
public
countAlliances() : int
Return values
int —getAlliances()
Get list of alliances and their statistics
public
getAlliances(string $order, int $start) : array<string|int, mixed>|null
Parameters
- $order : string
- $start : int
Return values
array<string|int, mixed>|null —getUsers()
Get list of users and their statistics
public
getUsers(string $order, int $start) : array<string|int, mixed>|null
Parameters
- $order : string
- $start : int
Return values
array<string|int, mixed>|null —setNewDb()
Creates a new Database object
private
setNewDb() : void