spoof
 All Data Structures Namespaces Files Functions Variables Pages
Config Class Reference
Inheritance diagram for Config:
Collaboration diagram for Config:

Public Member Functions

 __construct ($dsn, $username=NULL, $password=NULL, array $options=NULL, $driver=NULL)
 setDSN ($dsn)
 setUsername ($username)
 setPassword ($password)
 setOptions (array $options=NULL)
 setDriver ($driver)
- Public Member Functions inherited from IConfig
 __construct ($dsn, $username=NULL, $password=NULL, array $options=NULL)

Data Fields

 $dsn
 $username
 $password
 $options
 $driver

Detailed Description

A database configuration class. This class is used to store database connection configuration options.


Constructor & Destructor Documentation

__construct (   $dsn,
  $username = NULL,
  $password = NULL,
array  $options = NULL,
  $driver = NULL 
)

Constructor for the DBConfig class instantiates the database connection configuration object

Parameters:
string$dsnDSN for the connection
string$usernameconnection username, default NULL
string$passwordconnection password, default NULL
array$optionsconnections options, default NULL
string$driverdriver name, default NULL; set to override automatic detection from DSN string

Here is the call graph for this function:


Member Function Documentation

setDriver (   $driver)

Sets driver name for the configuration

Parameters:
string$driverdriver name

Here is the caller graph for this function:

setDSN (   $dsn)

Sets DSN string for the connection

Parameters:
string$dsnDSN for the connection

Implements IConfig.

Here is the caller graph for this function:

setOptions ( array  $options = NULL)

Sets array of options for the connection

Parameters:
array$optionsconnection specific options

Implements IConfig.

Here is the caller graph for this function:

setPassword (   $password)

Sets password for the connection

Parameters:
string$passwordpassword for the connection

Implements IConfig.

Here is the caller graph for this function:

setUsername (   $username)

Sets username for the connections

Parameters:
string$usernameusername for the connection

Implements IConfig.

Here is the caller graph for this function:


Field Documentation

$driver

Driver name string

$dsn

DSN string. DSN database connection string.

$options

Array of options. Array of database or connection specific options.

$password

Connection password. Password for the database connection.

$username

Connection username. Username for the database connection.


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