Elgg
Version 1.11
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
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'
);
$object
$object
These two snippets demonstrates triggering an event and how to register for that event.
Definition:
trigger.php:7
elgg_register_event_handler
elgg_register_event_handler($event, $object_type, $callback, $priority=500)
Definition:
elgglib.php:519
elgg_trigger_event
elgg_trigger_event($event, $object_type, $object=null)
Definition:
elgglib.php:570
ElggObject
Definition:
ElggObject.php:22
Generated on Mon Dec 30 2024 00:00:47 for Elgg by
1.8.11