phpBB

Development Wiki

Difference between revisions of "Events"

From phpBB Development Wiki

Redirect page
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==What are events?==
+
#REDIRECT [[:Category:Events_and_Listeners]]
An event is a hook location, also once known as a ledge. When an extension wishes to hook its functionality into the phpBB core at a certain point, it can do so only at available hook locations, or events. For more information, see the wiki article for [[listeners]].
+
 
+
==Why do we need events?==
+
They link the identifiers to the point where the code needs modifying and as such they are vital.
+
 
+
== Naming ==
+
 
+
{|
+
|-
+
! Name !! Explanation
+
|-
+
| [[Events]] || An event is a hook location, also once known as a ledge. When an extension wishes to hook its functionality into the phpBB core at a certain point, it can do so only at available hook locations, or events. For more information, see the wiki article for [[listeners]].
+
|-
+
| [[Listeners]] || A listener is a way to injecting or modifying code without having to edit the file. Listeners are injected into points that we call [[Events]]. Listeners might also be known as '''hooks'''.
+
|-
+
| Subscriber || A subscribed is a collection of [[listeners]]
+
|-
+
| Dispatcher || N/A
+
|}
+
 
+
 
+
[[Category:Events and Listeners]]
+

Latest revision as of 14:25, 20 March 2012