You are here: Re: Proper object extension convention « PHP Programming Language « IT news, forums, messages
Re: Proper object extension convention

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация