\ManiaControl\DatabaseDatabase

Database Connection Class

Summary

Methods
Properties
Constants
__construct()
getMysqli()
getConfig()
getMigrationHelper()
checkConnection()
__destruct()
$mysqli
No constants found
No protected methods found
No protected properties found
N/A
loadConfig()
initDatabase()
optimizeTables()
$maniaControl
$config
$migrationHelper
N/A

Properties

$mysqli

$mysqli : \mysqli

Type

\mysqli

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new Database Connection

Parameters

\ManiaControl\ManiaControl $maniaControl

getMysqli()

getMysqli() : \mysqli

Return the mysqli instance

Returns

\mysqli

checkConnection()

checkConnection() 

Check whether the Database Connection is still open

__destruct()

__destruct() 

Destruct Database Connection

loadConfig()

loadConfig() 

Load the Database Config

initDatabase()

initDatabase() : boolean

Connect to the defined Database

Returns

boolean

optimizeTables()

optimizeTables() : boolean

Optimize all existing Tables

Returns

boolean