Inherited by DatabaseConnection.
Public Member Functions | |
makeConnection ($qh=null, $makeDefault=true) | |
setDsnPrefix ($value) | |
setDsnBody ($value) | |
setUsername ($value) | |
setPassword ($value) | |
setHost ($value) | |
setPort ($value) | |
setDatabaseName ($value) | |
setCharset ($value) | |
setDBSource ($value) | |
getDsn () | |
getDsnPrefix () | |
getDsnBody () | |
getUsername () | |
getPassword () | |
getHost () | |
getPort () | |
getDatabaseName () | |
getDBSource () | |
getCharset () | |
Static Public Member Functions | |
static | defaultConnection ($value=null) |
Data Fields | |
$dsnPrefix ='mysql:' | |
$dsnBody | |
$username | |
$password | |
$host | |
$port | |
$databaseName | |
$charset = 'latin1' | |
$dbSource | |
|
static |
sets/gets the default DatabaseConnection
DatabaseConnection | $value |
getCharset | ( | ) |
getDatabaseName | ( | ) |
getDBSource | ( | ) |
getDsn | ( | ) |
Gets the dsn for DSO
getDsnBody | ( | ) |
Gets dsn body for PDO. This is everything behind the :
getDsnPrefix | ( | ) |
Gets the dsn prefix for DSO. This is everything up to and including the :
getHost | ( | ) |
getPassword | ( | ) |
getPort | ( | ) |
getUsername | ( | ) |
makeConnection | ( | $qh = null , |
|
$makeDefault = true |
|||
) |
Makes the default connection.
PntDbQueryHandler | $qh | The QueryHandler that will make the connection, or null if an arbitrary instance of QueryHandler may be used. |
boolean | $makeDefault | Wheather to make the connection the default |
setCharset | ( | $value | ) |
setDatabaseName | ( | $value | ) |
setDBSource | ( | $value | ) |
resource | or DBO the database connection resource |
setDsnBody | ( | $value | ) |
Sets dsn body for PDO. This is everything behind the :
setDsnPrefix | ( | $value | ) |
Sets the dsn prefix for DSO. This is everything up to and including the :
setHost | ( | $value | ) |
setPassword | ( | $value | ) |
setPort | ( | $value | ) |
setUsername | ( | $value | ) |
$charset = 'latin1' |
$databaseName |
$dbSource |
$dsnBody |
$dsnPrefix ='mysql:' |
$host |
$password |
$port |
$username |