Renameplanet
extends Model
in package
Renameplanet Class
Table of Contents
- $db : Database
- Contains the Database instance
- __construct() : mixed
- Constructor
- __destruct() : mixed
- Destructor
- deleteMoonAndPlanet() : void
- Delete moon and planet
- deletePlanet() : void
- Delete planet
- getFleets() : array<string|int, mixed>|null
- Get all fleets incoming/outgoing to the planet
- updatePlanetName() : void
- Update planet name
- 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 —deleteMoonAndPlanet()
Delete moon and planet
public
deleteMoonAndPlanet(int $user_id, int $planet_id, int $galaxy, int $system, int $planet) : void
Parameters
- $user_id : int
- $planet_id : int
- $galaxy : int
- $system : int
- $planet : int
Return values
void —deletePlanet()
Delete planet
public
deletePlanet(int $user_id, int $planet_id) : void
Parameters
- $user_id : int
- $planet_id : int
Return values
void —getFleets()
Get all fleets incoming/outgoing to the planet
public
getFleets(int $user_id, int $galaxy, int $system, int $planet) : array<string|int, mixed>|null
Parameters
- $user_id : int
- $galaxy : int
- $system : int
- $planet : int
Return values
array<string|int, mixed>|null —updatePlanetName()
Update planet name
public
updatePlanetName(string $new_name, int $planet_id) : void
Parameters
- $new_name : string
- $planet_id : int
Return values
void —setNewDb()
Creates a new Database object
private
setNewDb() : void