CiviEventInspector
class CiviEventInspector
Class CiviEventInspector
The event inspector is a development tool which provides metadata about events. It can be used for code-generators and documentation-generators.
Properties
protected array | $eventDefs |
Methods
Perform a scan to identify/describe all events.
Get a list of all events.
Find any events that match a pattern.
Get the definition of one event.
No description
Add a new event definition.
Scan a Symfony event class for metadata, and add it.
Scan a class for hook stubs, and add all of them.
Details
at line 35
static
findBuiltInEvents(GenericHookEvent $e)
Register the default hooks defined by 'CRM_Utils_Hook'.
at line 57
CiviEventInspector
build(bool $force = FALSE)
Perform a scan to identify/describe all events.
at line 73
array
getAll()
Get a list of all events.
at line 86
array
find(string $regex)
Find any events that match a pattern.
at line 101
array
get(string $name)
Get the definition of one event.
at line 111
bool
validate($eventDef)
at line 135
CiviEventInspector
add(array $eventDef)
Add a new event definition.
at line 169
CiviEventInspector
addEventClass(string $event, string $className)
Scan a Symfony event class for metadata, and add it.
at line 190
CiviEventInspector
addStaticStubs(string $className, string $prefix, null|callable $filter = NULL)
Scan a class for hook stubs, and add all of them.