Connection
extends Component
in package
implements
IConnection
AbstractYes
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
- extends() : bool
- getDsn() : IDsn
- getMacro() : string
- getReflection() : ReflectionClass
- 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
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolgetDsn()
public
getDsn() : IDsn
Return values
IDsngetMacro()
public
static getMacro(string $key) : string
Parameters
- $key : string
Tags
Return values
stringgetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassinit()
{@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