\APIDatabaseFactory

APIDatabaseFactory

Summary

Methods
Properties
Constants
__construct()
getDatabaseConnection()
getDatabase()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() : 

APIDatabaseFactory constructor.

Returns

getDatabaseConnection()

getDatabaseConnection() : \APIDatabase

Get a reference to the only instance of database class and connects to DB

if the class has not been instantiated yet, this will also take care of that

Returns

\APIDatabase —

Reference to the only instance of database class

getDatabase()

getDatabase() : 

Gets a reference to the only instance of database class. Currently only being used within the installer.

Returns

Reference to the only instance of database class