Connection
extends Connection
in package
implements
IMySQLConnection
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $connection : resource
- $database : string
- $dsn : IDsn
- $encryption_key : string
- $macros : array<string|int, mixed>
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- begin() : mixed
- {@inheritdoc}
- commit() : mixed
- {@inheritdoc}
- escape() : mixed
- exec() : mixed
- {@inheritdoc}
- extends() : bool
- getDatabase() : mixed
- {@inheritdoc}
- getDsn() : IDsn
- getEncryptionKey() : string|null
- {@inheritdoc}
- getErrorNumber() : int
- {@inheritdoc}
- getMacro() : string
- getReflection() : ReflectionClass
- rollback() : mixed
- {@inheritdoc}
- init() : mixed
- {@inheritdoc}
- replaceSQLMacros() : string
- setDsn() : mixed
Properties
$connection
protected
resource
$connection
$database
protected
string
$database
$dsn
protected
IDsn
$dsn
$encryption_key
protected
string
$encryption_key
$macros
protected
static array<string|int, mixed>
$macros
= ['encryption_key' => '$<DB_ENCRYPT_DECRYPT_KEY>']
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__construct()
public
__construct(IDsn $dsn) : mixed
Parameters
- $dsn : IDsn
Tags
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
begin()
{@inheritdoc}
public
begin() : mixed
Tags
commit()
{@inheritdoc}
public
commit() : mixed
Tags
escape()
public
escape(mixed &$escapeval) : mixed
Parameters
- $escapeval : mixed
exec()
{@inheritdoc}
public
exec(mixed $statement) : mixed
Parameters
- $statement : mixed
Tags
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolgetDatabase()
{@inheritdoc}
public
getDatabase() : mixed
Tags
getDsn()
public
getDsn() : IDsn
Return values
IDsngetEncryptionKey()
{@inheritdoc}
public
getEncryptionKey() : string|null
Tags
Return values
string|nullgetErrorNumber()
{@inheritdoc}
public
getErrorNumber() : int
Tags
Return values
intgetMacro()
public
static getMacro(string $key) : string
Parameters
- $key : string
Tags
Return values
stringgetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassrollback()
{@inheritdoc}
public
rollback() : mixed
Tags
init()
{@inheritdoc}
protected
init() : mixed
Tags
replaceSQLMacros()
protected
replaceSQLMacros(string $statement) : string
Parameters
- $statement : string
Tags
Return values
stringsetDsn()
private
setDsn(IDsn $dsn) : mixed
Parameters
- $dsn : IDsn