#216 - Use Observer instead of hooks

Description

Logic hooks doesn't always work that well, in the sense that the code needs to be eval'd and there is only a limited number of functionality that can be added with a single piece of code.

Instead of using logic hooks, use event observers instead, that allows a plugin to be written as an entire class, and on certain events, a function of the class can be called.

Activity

14 years and 4 months ago by Jack

I've tried something like this before, the problem is that the function doesn't have access to the variables outside of it self unless they are explicitly passed to it, which would require having to pass any and all variables to each function.

Where as when using eval, the code can access anything and everything.

Jack closed as Closed 14 years and 3 months ago
Jack reopened as New 13 years and 10 months ago

13 years and 10 months ago by Jack

  • Closed ticket as Completed
  • custom_field 0% 100%

New plugin system uses class methods and functions to execute plugins.

Status

Completed
-
Normal

Details

Enhancement
3.0
Plugins
3.0
Normal

Tracking

Pierre
14 years and 4 months ago
11 years and 11 months ago
0
-
-