class StaticPagesQueueEvent (View source)

Base class that all other events inherits. Also responsible for registering and notice eventlisteners about events.

Properties

protected static array $events
protected static bool $fire_test_events

Methods

public static 
trigger_events_during_testing(bool $fire)

Start running the event system, even if we are running tests

public static 
register_event(string $eventClass, string $listenerMarker)

Example usage: Event::register_event('MyEvent', MyEventListener')

public static 
bool
fire_event(StaticPagesQueueEvent $eventClass)

No description

public static 
clear()

Remove all previous registered events and listeners

Details

static trigger_events_during_testing(bool $fire)

Start running the event system, even if we are running tests

Parameters

bool $fire

static register_event(string $eventClass, string $listenerMarker)

Example usage: Event::register_event('MyEvent', MyEventListener')

Parameters

string $eventClass
string $listenerMarker

static bool fire_event(StaticPagesQueueEvent $eventClass)

No description

Parameters

StaticPagesQueueEvent $eventClass

Return Value

bool
  • if the event was fired or not

Exceptions

Exception

static clear()

Remove all previous registered events and listeners