\Gishiki\CoreApplicationDatabaseTrait

This is a working implementation of database connections handler for the Application class.

Summary

Methods
Properties
Constants
getDatabaseManager()
connectDatabase()
No public properties found
No constants found
No protected methods found
$databaseConnections
N/A
initializeDatabaseHandler()
isInitializedDatabaseHandler()
No private properties found
N/A

Properties

Methods

getDatabaseManager()

getDatabaseManager() : \Gishiki\Database\DatabaseManager

Get the collection of opened database handlers within the current application.

Returns

\Gishiki\Database\DatabaseManager

the collection of database handlers

connectDatabase()

connectDatabase(array  $connections) 

Prepare connections to databases.

Parameters

array $connections

the array of connections

Throws

\Gishiki\Database\DatabaseException

error while connecting the database

initializeDatabaseHandler()

initializeDatabaseHandler() 

Initialize the application internal database handler

isInitializedDatabaseHandler()

isInitializedDatabaseHandler() : boolean

Check if the database handler has been initialized.

Returns

boolean —

true if the database handler is initialized