View Single Post
11-05-2007, 04:44 PM
Join Date: Sep 2007
There are many ways to do a "hook" system, one approach could be similar to this:
The whole process would work like this:
Client asks HookController to execute a hook (using getHook())
HookController asks the specified Hook (i.e. LoginHook) to execute.
After Hook execution any return value is returned to the HookController which is in turn returned to the Client.
The system could easily be extended to support plug ins and "families" of hooks - allowing you to group hooks into products.
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
View Public Profile
Send a private message to Karl
Find More Posts by Karl