[eluser]ReLexEd[/eluser]
Like what you've done sofar, and will be keeping tabs on progress for this one...
I'm in the process of convincing our most important client to have us refactor the application that has been developed for his company over the last couple of years, which has become quite a mess of spaghetti-code....
I'm already sure that this will make it's way in!
Since I havent spent to much time with the library, I'm not realy sure if this is the kind of feedback your looking for, but here goes:
While I was following your example in the documentation, I noticed that the event_handle_on_subscribe_new-function was supposed to get it's parameters handed down in an array, but over here I just got the first element as a string.
When I dove into events.php I found after a little tinkering that changing the following line:
Code:
$callback_result = call_user_func_array($callback, $params);
to:
Code:
$callback_result = call_user_func_array($callback, array($params));
Would give the correct parameters in an array...
I'm not really sure if I was doing something wrong, or if the example was using untested code
Also, to better allow devvers not using patterns (;-)) to better grasp the concept, you might want to consider using the correct scope in the event-functions. (I had to use get_instance to get the CI-object, and load the array-helper and email-library...
No biggies, but it might save one or two others 15 to 20 minutes figuring out what this little gem does....
Kudo's nevertheless for a nice library!