abstract class AbstractConnection (View source)

Properties

protected string $name

The connexion name

protected array $config

The configuration definition

protected int $fetch

The PDO fetch mode

protected PDO $pdo

The PDO instance

Methods

void
connection()

Create an instance of the PDO

PDO
getConnection()

Retrieves the connection

void
setConnection(PDO $pdo)

Set the connection

string
getName()

Returns the name of the connection

void
setFetchMode(int $fetch)

Sets the data recovery mode.

array
getConfig()

Retrieves the configuration

string
getTablePrefix()

Retrieves the table prefix

string
getCharset()

Retrieves the type of encoding

string
getCollation()

Retrieves the define Collation

string
getPdoDriver()

Get the drive that PDO run on

bind(PDOStatement $pdo_statement, array $bindings = [])

Executes PDOStatement::bindValue on an instance of

Details

abstract void connection()

Create an instance of the PDO

Return Value

void

PDO getConnection()

Retrieves the connection

Return Value

PDO

void setConnection(PDO $pdo)

Set the connection

Parameters

PDO $pdo

Return Value

void

string getName()

Returns the name of the connection

Return Value

string

void setFetchMode(int $fetch)

Sets the data recovery mode.

Parameters

int $fetch

Return Value

void

array getConfig()

Retrieves the configuration

Return Value

array

string getTablePrefix()

Retrieves the table prefix

Return Value

string

string getCharset()

Retrieves the type of encoding

Return Value

string

string getCollation()

Retrieves the define Collation

Return Value

string

string getPdoDriver()

Get the drive that PDO run on

Return Value

string

PDOStatement bind(PDOStatement $pdo_statement, array $bindings = [])

Executes PDOStatement::bindValue on an instance of

Parameters

PDOStatement $pdo_statement
array $bindings

Return Value

PDOStatement