XG Proyect

Home extends Model
in package

Home Class

Table of Contents

$db  : Database
Contains the Database instance
__construct()  : mixed
Constructor
__destruct()  : mixed
Destructor
getUserWithProvidedCredentials()  : array<string|int, mixed>|null
Get the user based on the provided credentials
removeBan()  : void
Remove ban
setUserHomeCurrentPlanet()  : void
The the user home planet as the current planet
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

getUserWithProvidedCredentials()

Get the user based on the provided credentials

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

removeBan()

Remove ban

public removeBan(string $user_name) : void
Parameters
$user_name : string
Return values
void

setUserHomeCurrentPlanet()

The the user home planet as the current planet

public setUserHomeCurrentPlanet(int $user_id) : void
Parameters
$user_id : int
Return values
void

setNewDb()

Creates a new Database object

private setNewDb() : void
Return values
void

Search results