depage-db v1.4.0
Loading...
Searching...
No Matches
Pdo Class Reference

Detailed Description

Definition at line 15 of file Pdo.php.

Public Member Functions

 __construct ($dsn, $username='', $password='', $driver_options=array())
 constructor for PDO object with an additional prefix-parameter in driver-options
 __destruct ()
 removes the pdo object which closes the connection to the database
 getPdoObject ()
 __set ($name, $value)
 __get ($name)
 __call ($name, $arguments)
 __sleep ()
 allows Depage\Db\Pdo-object to be serialized
 __wakeup ()
 allows Depage\Db\Pdo-object to be unserialized

Static Public Member Functions

static __callStatic ($name, $arguments)
static parse_dsn ($dsn)
 parses dsn intro its parts

Data Fields

 $prefix = ""

Constructor & Destructor Documentation

◆ __construct()

__construct ( $dsn,
$username = '',
$password = '',
$driver_options = array() )
Parameters
stringdsn dsn for pdo-object
stringusername username for database
stringpassword password for database
array$driver_optionsdatabase-driver options with additional prefix-entry
Returns
void

Definition at line 34 of file Pdo.php.

◆ __destruct()

__destruct ( )
Returns
void

Definition at line 54 of file Pdo.php.

Member Function Documentation

◆ __call()

__call ( $name,
$arguments )

Definition at line 102 of file Pdo.php.

◆ __callStatic()

__callStatic ( $name,
$arguments )
static

Definition at line 120 of file Pdo.php.

◆ __get()

__get ( $name)

Definition at line 92 of file Pdo.php.

◆ __set()

__set ( $name,
$value )

Definition at line 83 of file Pdo.php.

◆ __sleep()

__sleep ( )

Definition at line 132 of file Pdo.php.

◆ __wakeup()

__wakeup ( )

We don't need to initialize the connection because we are already initializing them late.

Definition at line 147 of file Pdo.php.

◆ getPdoObject()

getPdoObject ( )

Definition at line 72 of file Pdo.php.

◆ parse_dsn()

parse_dsn ( $dsn)
static
Parameters
stringdsn dsn for pdo-object
Returns
array of options

Definition at line 158 of file Pdo.php.

Field Documentation

◆ $prefix

$prefix = ""

Definition at line 17 of file Pdo.php.


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