You are here: Re: Object-Oriented Design in PHP « All PHP « IT news, forums, messages
Re: Object-Oriented Design in PHP

Posted by steve on 10/24/05 21:22

"NC" <nc@iname.com> wrote in message
news:1130175442.823069.267960@z14g2000cwz.googlegroups.com...
| rush wrote:
| > "db_guy" <karl7712@yahoo.com> wrote in message
| > news:1129909115.120095.113810@g49g2000cwa.googlegroups.com...
| >
| > > -Why would I need for an html form (ex: an Add Client Contact form) to
| > > be an object when there will only be one copy of this form ever
| > > created, on one page (ex: the Add Client Contact page).
| >
| > If you have some other forms on that site, you could have AbstractForm
| > class describing general form handling flow, and sublcass each form on
| > the site from it.
|
| Or you could have a single function that would do absolutely the same
| thing with less overhead...

that depends nc. generally though, with sufficient complexity, it is easier
to manage the specifics of validation and presentation in the manner he
described...however his example leaves much to be desired in supporting the
complexity clause or any other circumstance that would actually make his
point valid...making you absolutely correct (with a *bunch* of caveates ;^)

 

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

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