Sounds good Peter but when trying to learn OO it just clouds the water throwing in Transfer, IBO's etc into the mix. I agree its a good way to go though witha bit more experience under your belt.
OO on its own can mess your head :-) I think Coldspring is fine though for starting off as its fairly straightforward even for newbies :-) Alan ________________________________________ From: [email protected] [EMAIL PROTECTED] On Behalf Of Peter Bell [EMAIL PROTECTED] Sent: 26 March 2008 15:04 To: [email protected] Subject: [CFCDEV] Re: Composing? I have a service class for every business object which acts as an API to the objects. I personally have a getAssociated() base method in my business objects so I can just write: CalendarList = Event.getAssociated(“Calendars”) and it returns an IBO (an iterating business object that simulates an array of business objects plus a decorating iterator without the performance cost of instantiating all of the beans)containing all of the calendars. I describe the details of the relationship in XML that is loaded by the business object. Bear in mind that frameworks like Transfer can do a lot of the heavy lifting for you rather than having to write code from scratch. And yep, it’s always a good time to get comfortable with ColdSpring (or LightWire – start with ColdSpring)! Best Wishes, Peter On 3/26/08 10:58 AM, "Stephen Judd" <[EMAIL PROTECTED]> wrote: I'm taking my first plunge into a fully OO application and have what I think is a simple question, though I haven't found the answer through searching: I'm developing an events calendar. An event can be on more than one calendar, so when I display an individual event, I want to also display which calendars it's on. So, when I construct my event object (I know, confusing name) what's the best way to grab an array of the calendars it occurs on? I'm thinking the array could be a property of the event, but I'm not sure that my event should be asking the calendarManager for the array directly. Options I've contemplated: Have the event object just query the database and populate the array itself. Have the event object ask the calendarManager for the array. Pass the array into the constructor when creating the event object. Any thoughts? is this where I need to start using and learning ColdSpring? Thanks, Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CFCDev" 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/cfcdev?hl=en -~----------~----~----~----~------~----~------~--~---
