XG Proyect

Server extends Model
in package

Server Class

Table of Contents

$db  : Database
Contains the Database instance
__construct()  : mixed
Constructor
__destruct()  : mixed
Destructor
readAllConfigs()  : array<string|int, mixed>
Read all server configurations
readConfig()  : string
Read an specific config variable
updateConfigs()  : void
Update all configs, we asume they were validated
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

readAllConfigs()

Read all server configurations

public readAllConfigs() : array<string|int, mixed>
Return values
array<string|int, mixed>

readConfig()

Read an specific config variable

public readConfig(string $config_name) : string
Parameters
$config_name : string
Return values
string

updateConfigs()

Update all configs, we asume they were validated

public updateConfigs(array<string|int, mixed> $configs) : void
Parameters
$configs : array<string|int, mixed>
Return values
void

setNewDb()

Creates a new Database object

private setNewDb() : void
Return values
void

Search results