[geeklog-devel] GSoC 2008: Core notification service

Joe Mucchiello joe at ThrowingDice.com
Tue Mar 18 17:01:08 EDT 2008


Does this code have to run with every page hit?

//Get instance of the globals
$dispatcher = Dispatcher::getInstance();
//Add pluginname_eventobserver function as listener for myEvent
$dispatcher->addObserver('myEvent', 'pluginname_eventobserver');

Telling the system every event I'm interested in with each run seems
strange especially when the page being loaded might never interact
with subsystems I'm looking to observe. I assume this code only has
to run in the existing plugin_install (and be handled in
plugin_enablestatechange). Once called, the database maintains a
relationship of events to handler functions and when an event fires,
the functions are called one at a time.

Since there are no database layouts/mockups in the proposal so I have
no way of knowing your plan.

I think 2 weeks to retrofit into GL Core is optimistic. Properly
written this code could replace all callable plugin interfaces.

Finally, I recommend doing the UI part as a plugin since the plugin
API is not a moving target like the codebase can be. Later
integration should be easier than if you've randomly edited the core.

Joe

At 11:27 AM 3/18/2008, Konstantin Mikhaylov wrote:

>Hello guys.

>

>I congratulate you with acceptance in GSoC 2008.

>

>Can i recieve some feedback on my proposal?

>It is located http://docs.google.com/View?docid=dd4t2984_0cf3526cd

>

>Any thoughts and suggestions are very appreciated.

>Sorry for my bad english

>

>--

>Thanks, Konstantin

>_______________________________________________

>geeklog-devel mailing list

>geeklog-devel at lists.geeklog.net

>http://eight.pairlist.net/mailman/listinfo/geeklog-devel


----
Joe Mucchiello
Throwing Dice Games
http://www.throwingdice.com




More information about the geeklog-devel mailing list