Documentation

ConnectionEventArgs extends EventArgs
in package

Event Arguments used when a Driver connection is established inside Doctrine\DBAL\Connection.

Tags
link
www.doctrine-project.org
since
1.0
author

Benjamin Eberlei kontakt@beberlei.de

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

$_emptyEventArgsInstance

Single instance of EventArgs.

private static EventArgs $_emptyEventArgsInstance

Methods

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
see
EventManager::dispatchEvent
link
http://msdn.microsoft.com/en-us/library/system.eventargs.aspx
Return values
EventArgs

Search results