Welcome Guest, Not a member yet? Register   Sign In
Plugin Architecture: Hooks and Callbacks
#14

[eluser]Unknown[/eluser]
I just wanted to throw Magento in here as a good example of extensibility, I know it might seem too complex at first, but it's actually a very well thought out modular architecture.

It employs an event driven architecture, which is a take on the hook/callback architecture mention in the OP. Callback (observer) methods are paired to events (hooks) via XML config files in each module's directory, which are parsed (and cached) by the Core. This is similar to CI's implementation, but even more flexible, as it allows all modules to create events, they aren't limited to core hooks.


Messages In This Thread
Plugin Architecture: Hooks and Callbacks - by El Forum - 12-26-2007, 10:22 AM
Plugin Architecture: Hooks and Callbacks - by El Forum - 12-26-2007, 11:51 AM
Plugin Architecture: Hooks and Callbacks - by El Forum - 12-26-2007, 12:07 PM
Plugin Architecture: Hooks and Callbacks - by El Forum - 08-05-2008, 03:09 PM
Plugin Architecture: Hooks and Callbacks - by El Forum - 08-05-2008, 04:40 PM
Plugin Architecture: Hooks and Callbacks - by El Forum - 08-05-2008, 06:17 PM
Plugin Architecture: Hooks and Callbacks - by El Forum - 08-05-2008, 06:39 PM
Plugin Architecture: Hooks and Callbacks - by El Forum - 08-05-2008, 07:10 PM
Plugin Architecture: Hooks and Callbacks - by El Forum - 08-05-2008, 07:20 PM
Plugin Architecture: Hooks and Callbacks - by El Forum - 08-05-2008, 07:37 PM
Plugin Architecture: Hooks and Callbacks - by El Forum - 08-05-2008, 07:43 PM
Plugin Architecture: Hooks and Callbacks - by El Forum - 10-27-2008, 12:52 PM
Plugin Architecture: Hooks and Callbacks - by El Forum - 10-27-2008, 01:33 PM
Plugin Architecture: Hooks and Callbacks - by El Forum - 09-11-2012, 02:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB