Hi guys,

I'm a bit of an OO newbie so I was wondering if someone on here might
be able to help me find an approach to my problem.

I have two methods -
Method #1 is a core part of a 3rd party open source application we're
running in-house.
Method #2 is part of a plugin I'm developing for this application.

Method #1 is used to simply switch a section of a page on or off. In
other words is sets a DB field "visible" to 0 or 1 depending on the
section's current status.

Method #2 is used to reset two date fields in my table.

What I want to do is somehow have method #2 executed the moment method
#1 has run but, and here is the twist, I don't want to have to rewrite
anything in method #1 or it's object. This is mainly because a) we're
planning to release this back out into the community at a later stage
so I'd rather have it as a single directory of stand-alone files and
b) it would mean we'd have to insert the code into method #1 again and
retest if we ever upgraded.

Is there anyway that method #2 can "listen" for method #1 being
executed without method #1 being aware that there is anything else
going on?

Cheers,
James
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to