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

Detailed Description

Definition at line 16 of file Pdo.php.

Public Member Functions

 __construct ($dsn, $username='', $password='', $driver_options=[])
 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 unbuffered ()
 helper function to set unbuffered query options for mysql
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 = [] )
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 35 of file Pdo.php.

◆ __destruct()

__destruct ( )
Returns
void

Definition at line 55 of file Pdo.php.

Member Function Documentation

◆ __call()

__call ( $name,
$arguments )

Definition at line 116 of file Pdo.php.

◆ __callStatic()

__callStatic ( $name,
$arguments )
static

Definition at line 134 of file Pdo.php.

◆ __get()

__get ( $name)

Definition at line 106 of file Pdo.php.

◆ __set()

__set ( $name,
$value )

Definition at line 97 of file Pdo.php.

◆ __sleep()

__sleep ( )

Definition at line 146 of file Pdo.php.

◆ __wakeup()

__wakeup ( )

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

Definition at line 161 of file Pdo.php.

◆ getPdoObject()

getPdoObject ( )

Definition at line 73 of file Pdo.php.

◆ parse_dsn()

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

Definition at line 170 of file Pdo.php.

◆ unbuffered()

unbuffered ( )
static
Returns
void

Definition at line 86 of file Pdo.php.

Field Documentation

◆ $prefix

$prefix = ""

Definition at line 18 of file Pdo.php.


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