DriverManager
extends Component
in package
implements
ISingleton
Uses
TSingleton
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $instance : ISingleton
- $connections : ArrayObject
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __destruct() : mixed
- __get() : mixed
- begin() : mixed
- Indicates to all connections to listen for the execution of a statment to determine when to begin a transaction
- commit() : void
- Indicates to all connections to commit any open transactions
- extends() : bool
- getConnection() : IConnection
- Gets a specific connection to a database by a provided data source name
- getConnections() : ArrayObject
- Returns a list of connections that have at least been previously opened
- getInstance() : ISingleton
- getReflection() : ReflectionClass
- rollback() : void
- Indicates to all connections to rollback any open transactions
- __construct() : mixed
- init() : mixed
- {@inheritdoc}
Properties
$instance
protected
static ISingleton
$instance
$connections
private
ArrayObject
$connections
$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>
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
begin()
Indicates to all connections to listen for the execution of a statment to determine when to begin a transaction
public
begin() : mixed
commit()
Indicates to all connections to commit any open transactions
public
commit() : void
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolgetConnection()
Gets a specific connection to a database by a provided data source name
public
getConnection(IDsn $dsn) : IConnection
Parameters
- $dsn : IDsn
-
The database source name to use in getting the connection
Return values
IConnection —The database connection retrieved by the provided data source name
getConnections()
Returns a list of connections that have at least been previously opened
public
getConnections() : ArrayObject
Return values
ArrayObject —The list of connections
getInstance()
public
static getInstance() : ISingleton
Return values
ISingletongetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassrollback()
Indicates to all connections to rollback any open transactions
public
rollback() : void
__construct()
protected
__construct() : mixed
init()
{@inheritdoc}
protected
init() : mixed