\dbManager

Gives access to a database using MindFlow's configuration parameters

The dbManager aims to offer minimalistic database access tools. These summup essentially to open the database, close it and check is a table exists. The opened database object is stored in the variable $mf->db. We didn't want to implement a full database API because Mindflow relies on PDO which is already a good database API. Also we wanted to let all the possible freedom to the developper for database access. If you need to use several databases concurrently, create one dbManager per database and pass the customized following arguments to the constructor for each dbManager : $dbHost, $dbPort, $dbName, $dbUsername, $dbPassword, $forceUtf8

Summary

Methods
Properties
Constants
__construct()
openDB()
closeDB()
SQLTableExists()
$pdo
$host
$forceUtf8
$dbHost
$dbPort
$dbName
$dbUsername
$dbPassword
No constants found
No protected methods found
No protected properties found
N/A
getDbFromConfig()
getDbFromArgs()
No private properties found
N/A

Properties

$pdo

$pdo : 

Type

$host

$host : 

Type

$forceUtf8

$forceUtf8 : 

Type

$dbHost

$dbHost : 

Type

$dbPort

$dbPort : 

Type

$dbName

$dbName : 

Type

$dbUsername

$dbUsername : 

Type

$dbPassword

$dbPassword : 

Type

Methods

__construct()

__construct() 

openDB()

openDB() 

closeDB()

closeDB() 

SQLTableExists()

SQLTableExists(  $tableName) 

Parameters

$tableName

getDbFromConfig()

getDbFromConfig() 

getDbFromArgs()

getDbFromArgs(  $dbHost,   $dbPort,   $dbName,   $dbUsername,   $dbPassword,   $forceUtf8 = true) 

Parameters

$dbHost
$dbPort
$dbName
$dbUsername
$dbPassword
$forceUtf8