Resources
extends Model
in package
Resources Class
Table of Contents
- $db : Database
- Contains the Database instance
- __construct() : mixed
- Constructor
- __destruct() : mixed
- Destructor
- updateCurrentPlanet() : void
- Update current planet
- 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 —updateCurrentPlanet()
Update current planet
public
updateCurrentPlanet(array<string|int, mixed> $planet, string $sub_query) : void
Parameters
- $planet : array<string|int, mixed>
- $sub_query : string
Return values
void —setNewDb()
Creates a new Database object
private
setNewDb() : void