Documentation

LoadClassMetadataEventArgs extends EventArgs
in package

Class that holds event arguments for a loadMetadata event.

Tags
author

Jonathan H. Wage jonwage@gmail.com

since
2.2

Table of Contents

$_emptyEventArgsInstance  : EventArgs
Single instance of EventArgs.
$classMetadata  : ClassMetadata
$objectManager  : ObjectManager
__construct()  : mixed
Constructor.
getClassMetadata()  : ClassMetadata
Retrieves the associated ClassMetadata.
getEmptyInstance()  : EventArgs
Gets the single, empty and immutable EventArgs instance.
getObjectManager()  : ObjectManager
Retrieves the associated ObjectManager.

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