spoof
 All Data Structures Namespaces Files Functions Variables Pages
IConfig Interface Reference
Inheritance diagram for IConfig:

Public Member Functions

 __construct ($dsn, $username=NULL, $password=NULL, array $options=NULL)
 setDSN ($dsn)
 setUsername ($username)
 setPassword ($password)
 setOptions (array $options=NULL)

Detailed Description

Database connection configuration interface. This interface is used to define database connection configuration.


Constructor & Destructor Documentation

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

Constructor for the DBConfig class instantiates the database connection configuration object

Parameters:
string$dsnDSN for the connection
string$usernameconnection username, optional, default NULL
string$passwordconnection password, optional, default NULL
array$optionsconnections options, optional, default NULL

Member Function Documentation

setDSN (   $dsn)

Sets DSN string for the connection

Parameters:
string$dsnDSN for the connection

Implemented in Config.

setOptions ( array  $options = NULL)

Sets array of options for the connection

Parameters:
array$optionsconnection specific options

Implemented in Config.

setPassword (   $password)

Sets password for the connection

Parameters:
string$passwordpassword for the connection

Implemented in Config.

setUsername (   $username)

Sets username for the connections

Parameters:
string$usernameusername for the connection

Implemented in Config.


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