abstract classe AbstractConnection (Voir la source)

Propriétés

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

Méthodes

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

Détails

abstract void connection()

Create an instance of the PDO

Valeur de retour

void

PDO getConnection()

Retrieves the connection

Valeur de retour

PDO

void setConnection(PDO $pdo)

Set the connection

Paramètres

PDO $pdo

Valeur de retour

void

string getName()

Returns the name of the connection

Valeur de retour

string

void setFetchMode(int $fetch)

Sets the data recovery mode.

Paramètres

int $fetch

Valeur de retour

void

array getConfig()

Retrieves the configuration

Valeur de retour

array

string getTablePrefix()

Retrieves the table prefix

Valeur de retour

string

string getCharset()

Retrieves the type of encoding

Valeur de retour

string

string getCollation()

Retrieves the define Collation

Valeur de retour

string

string getPdoDriver()

Get the drive that PDO run on

Valeur de retour

string

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

Executes PDOStatement::bindValue on an instance of

Paramètres

PDOStatement $pdo_statement
array $bindings

Valeur de retour

PDOStatement