Documentation

DriverManager extends Component
in package
implements ISingleton Uses TSingleton

FinalYes
Tags
author

Ramone Burrell ramone@ramoneburrell.com

since

Version 0.1.0

Table of Contents

Interfaces

ISingleton

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

Methods

__callStatic()

public static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
$method : mixed
$arguments : array<string|int, 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
bool

getConnection()

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

getReflection()

public getReflection() : ReflectionClass
Return values
ReflectionClass

rollback()

Indicates to all connections to rollback any open transactions

public rollback() : void

        
On this page

Search results