Elgg
Version 2.3
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
ElggObject
elgg_register_event_handler
elgg_register_event_handler($event, $object_type, $callback, $priority=500)
Definition:
elgglib.php:550
elgg_trigger_event
elgg_trigger_event($event, $object_type, $object=null)
Definition:
elgglib.php:614
Generated on Wed Dec 4 2024 00:01:02 for Elgg by
1.8.11