From: Naomi M. <na...@sm...> - 2006-06-16 10:23:59
|
Roger that. Makes all the sense in the world now. Ta, Matthew. On 16 Jun 2006, at 11:14, Matthew Buckett wrote: > Naomi Miles wrote: >> Is the event_code coupled with resource_id or something to give >> specific events? All Event subclasses have own event(s) and they all >> start at 1. I presume this is what ends up in Events table as >> event_code? Or am I missing something? > > Yep they will. > > The event_code relates to the class. Because the Bodington database > layer will give you back a AssessmentEvent or LogBookEvent the > enumeration of event_codes is local to the event subclass. > > Calling Event.getCode() without having cast the object first if you > are > getting all the events for a resource doesn't make sense. > > -- > -- Matthew Buckett, VLE Developer > -- Learning Technologies Group, Oxford University Computing Services > -- Tel: +44 (0)1865 283660 http://www.oucs.ox.ac.uk/ltg/ > > > _______________________________________________ > Bodington-developers mailing list > Bod...@li... > https://lists.sourceforge.net/lists/listinfo/bodington-developers |