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

setConnection(PDO $pdo)

Set the connection

string
getName()

Returns the name of the connection

setFetchMode(int $fetch)

Sets the data recovery mode.

array
getConfig()

Retrieves the configuration

mixed|string
getTablePrefix()

Retrieves the table prefix

mixed|string
getCharset()

Retrieves the type of encoding

mixed|string
getCollation()

Retrieves the define Collation

Details

abstract void connection()

Create an instance of the PDO

Return Value

void

PDO getConnection()

Retrieves the connection

Return Value

PDO

setConnection(PDO $pdo)

Set the connection

Parameters

PDO $pdo

string getName()

Returns the name of the connection

Return Value

string

setFetchMode(int $fetch)

Sets the data recovery mode.

Parameters

int $fetch

array getConfig()

Retrieves the configuration

Return Value

array

mixed|string getTablePrefix()

Retrieves the table prefix

Return Value

mixed|string

mixed|string getCharset()

Retrieves the type of encoding

Return Value

mixed|string

mixed|string getCollation()

Retrieves the define Collation

Return Value

mixed|string