|
Posted by terence.parker on 08/23/06 04:54
Richard Levasseur wrote:
> Judging from only your class names, I'm going to guess that you don't
> need to derive Alert from Parser, the logic being Alert probably uses
> data that has been parsed, not it does the parsing itself.
Thanks for both of your replies. Going by what you guys say then you're
right - Alert doesn't need to be derived from Parser nor does it do the
parsing itself.
To me, logic aside, it just seemed the easiest thing to do to get my
classes to work with each other and share variables (such as path
settings) and instances (such as MySQL or Logger instance) without
having to have the variables passed in.
However, i'll try to re-organise things and see if I can instantiate
objects & declare variables at a non-class PHP page that brings them
altogether. That might be the best solution.
Thanks again!
Terence
[Back to original message]
|