You are here: Re: instantiating an object fails (design patterns) « All PHP « IT news, forums, messages
Re: instantiating an object fails (design patterns)

Posted by www.douglassdavis.com on 09/16/05 18:42

Marcin Dobrucki wrote:

>
> I usually do it so that inside the constructor, I do things that are
> very unlikely to fail (eg. set constants, etc), and then defer stuff
> that can fail (eg. getting stuff from DB, etc), to the initalizing
> function.
>
> Constructors are nice, coz then you can "$foo = new Object()". :)
>


thanks. i may do it this way.

 

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

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