ConnectionEventArgs
extends EventArgs
in package
Event Arguments used when a Driver connection is established inside Doctrine\DBAL\Connection.
Tags
Table of Contents
- $_connection : Connection
- $_emptyEventArgsInstance : EventArgs
- Single instance of EventArgs.
- __construct() : mixed
- getConnection() : Connection
- getDatabasePlatform() : AbstractPlatform
- getDriver() : Driver
- getEmptyInstance() : EventArgs
- Gets the single, empty and immutable EventArgs instance.
- getSchemaManager() : AbstractSchemaManager
Properties
$_connection
private
Connection
$_connection
$_emptyEventArgsInstance
Single instance of EventArgs.
private
static EventArgs
$_emptyEventArgsInstance
Methods
__construct()
public
__construct(Connection $connection) : mixed
Parameters
- $connection : Connection
Return values
mixed —getConnection()
public
getConnection() : Connection
Return values
Connection —getDatabasePlatform()
public
getDatabasePlatform() : AbstractPlatform
Return values
AbstractPlatform —getDriver()
public
getDriver() : Driver
Return values
Driver —getEmptyInstance()
Gets the single, empty and immutable EventArgs instance.
public
static getEmptyInstance() : EventArgs
This instance will be used when events are dispatched without any parameter, like this: EventManager::dispatchEvent('eventname');
The benefit from this is that only one empty instance is instantiated and shared (otherwise there would be instances for every dispatched in the abovementioned form).
Tags
Return values
EventArgs —getSchemaManager()
public
getSchemaManager() : AbstractSchemaManager