class middag_observer

Central event observer for Moodle events.

This class translates Moodle native events into framework signals that can be consumed by multiple listeners.

Constants

private CATCH_ALL_CONFIG

Plugin config key that controls wildcard event dispatching.

Methods

static void
catch_all(base $event)

Observer entrypoint for wildcard subscriptions.

static void
observe_registered(base $event)

Observer entrypoint for explicitly registered events.

static void
observe(base $event)

Backward-compatible observer entrypoint.

Details

at line 43
static void catch_all(base $event)

Observer entrypoint for wildcard subscriptions.

Parameters

base $event

the Moodle event object

Return Value

void

at line 60
static void observe_registered(base $event)

Observer entrypoint for explicitly registered events.

This is the inverse of catch_all(): it only dispatches when wildcard observation is disabled by configuration.

Parameters

base $event

the Moodle event object

Return Value

void

at line 76
static void observe(base $event)

Backward-compatible observer entrypoint.

Older generated db/events.php files may still point to ::observe.

Parameters

base $event

the Moodle event object

Return Value

void