Reply to Re: Using a Resource as a Class Property

Your name:

Reply:


Posted by Sanders Kaufman on 07/22/07 17:02

Michael Fesser wrote:
> .oO(Sanders Kaufman)

> class my_childclass extends my_baseclass {
> function my_childclass() {
> // first call parent constructor or we won't have a database ...
> parent::my_baseclass();
> // then do some other stuff
> ...


OK - that seems to be where I went wrong. I thought the base class's
constructor was automatically called when the extended class's was.

So, bottom line, what you're saying here is that when you extend a base
class like this, you still have to manually call the base class's
constructor? Zat right?

[Back to original 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

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