phpBB

Development Wiki

Difference between revisions of "Events"

From phpBB Development Wiki

(Created page with "==What are 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...")
 
Line 4: Line 4:
 
==Why do we need events?==
 
==Why do we need events?==
 
They link the identifiers to the point where the code needs modifying and as such they are vital.
 
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]]
 
[[Category:Events and Listeners]]

Revision as of 22:47, 18 March 2012

What are 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.

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