Empire
extends Model
in package
Empire Class
Table of Contents
- $db : Database
- Contains the Database instance
- __construct() : mixed
- Constructor
- __destruct() : mixed
- Destructor
- getAllPlayerData() : array<string|int, mixed>
- Get all player data
- 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 —getAllPlayerData()
Get all player data
public
getAllPlayerData(int $user_id) : array<string|int, mixed>
Parameters
- $user_id : int
Return values
array<string|int, mixed> —setNewDb()
Creates a new Database object
private
setNewDb() : void