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

[eluser]Xeoncross[/eluser]
[quote author="wiredesignz" date="1218001146"]Neophytes khaos events library allows using hooks to load plugins. Check it out.[/quote]

Thanks for pointing that out - His lib is pretty impressive. However, it seems a little overkill..? Maybe mine is to simple Wink


He states
Quote:I wish to log a user in so i do my usual login code and now i want to give other applications a chance to login using the same credentials say phpbb so i invoke $this->hooks->_call_hook(’user_login’); and thats where i get stuck, how would you pass the user credentials as the params are fixed in the config/hooks.php config file for each hook, as best as i can see anyway. Assuming this wasnt a problem i’d want to see how each of the scripts phpbb etc responded and if any failed maybe abort the login or log a message though just scanning the code the return data doesnt appear to be captured or returned when you call a hook.

Which is exactly the gap my class fills - so I am trying to figure out where his script is better than mine now...


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