Elgg
Version 1.11
docs
examples
events
trigger.php
Go to the documentation of this file.
1
<?php
7
$object
=
new
ElggObject
();
8
elgg_trigger_event
(
'test'
,
'example'
,
$object
);
9
10
// elsewhere a handler could be registered by saying
11
elgg_register_event_handler
(
'test'
,
'example'
,
'example_event_handler'
);
ElggObject
Definition:
ElggObject.php:22
elgg_trigger_event
elgg_trigger_event($event, $object_type, $object=null)
Definition:
elgglib.php:570
elgg_register_event_handler
elgg_register_event_handler($event, $object_type, $callback, $priority=500)
Definition:
elgglib.php:519
$object
$object
These two snippets demonstrates triggering an event and how to register for that event.
Definition:
trigger.php:7
Generated on Fri Aug 29 2025 00:00:37 for Elgg by
1.9.1