Maybe "Context" is the wrong term, but basically it is just a CFC that wraps the struct that contains the info about a specific event... the various attributes it needs (like event name, event keys to use and the title to display in the HTML) to do its job.
Think of it this way: when you are building controller methods in MG, the Event object that's available in all of them is actually an instance of modelglue.unity.eventrequest.EventContext. It contains all the arguments, results, and event values that are passed into the controller with methods to access and manipulate them. Check it out as an example. Since an EventTrackerContext would have to contain a collection of values like name, trigger event, event keys to use and title, along with possibly other things like a DAO to access the DB to save EventTracker's data to the DB, and any other number of other important items, it seemed to me like a context object. You could just as easily implement the Command Pattern here and have each one have an execute() method to do the job of tracking the access to the event. ;) Anyway... glad this convo is working out for you. I'm enjoying it too. J On Oct 10, 2008, at 11:37 AM, James Allen wrote: > > I'm starting to get abit lost now (all this talk about > context's. :) ) but I > do like the sounds of where this is going, especially the library / > cross-framework elements. > > Think I'd need to see it in action to fully 'get it', but definitely > something to think about. > > I like how this discussion has got me thinking of different ways to > approach > things in MG.. Superb. > > --- > James Allen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en For more about Model-Glue, check http://www.model-glue.com . -~----------~----~----~----~------~----~------~--~---
