\midcom\eventsdispatcher

midcom event dispatcher

Summary

Methods
Properties
Constants
trigger_watch()
add_watches()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$watches
N/A

Properties

$watches

$watches : array

This array contains all registered MidCOM operation watches. They are indexed by operation and map to components / libraries which have registered to classes.

Values consist of an array whose first element is the component and subsequent elements are the types involved (so a single count means all objects).

Type

array

Methods

trigger_watch()

trigger_watch(integer  $operation_id, \midcom_core_dbaobject  $object) 

Compat function for ragnaroek-style events.

Parameters

integer $operation_id

One of the MIDCOM_OPERATIONDBA constants

\midcom_core_dbaobject $object

The current object

add_watches()

add_watches(array  $watches,   $component) 

Parameters

array $watches
$component