phpPeanuts  2.2.0
phpPeanuts framework
 All Data Structures Namespaces Files Functions Variables
Public Member Functions | Static Public Member Functions | Data Fields
PntDatabaseConnection Class Reference

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
 

Member Function Documentation

static defaultConnection (   $value = null)
static

sets/gets the default DatabaseConnection

Parameters
DatabaseConnection$value
Returns
DatabaseConnection
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. 
Parameters
PntDbQueryHandler$qhThe QueryHandler that will make the connection, or null if an arbitrary instance of QueryHandler may be used.
boolean$makeDefaultWheather to make the connection the default
setCharset (   $value)
setDatabaseName (   $value)
setDBSource (   $value)
Parameters
resourceor 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)

Field Documentation

$charset = 'latin1'
$databaseName
$dbSource
$dsnBody
$dsnPrefix ='mysql:'
$host
$password
$port
$username

The documentation for this class was generated from the following file: