Re: Using a Resource as a Class Property
- From: Sanders Kaufman <bucky@xxxxxxxxxxx>
- Date: Sun, 22 Jul 2007 17:02:16 GMT
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?
.
- Follow-Ups:
- Re: Using a Resource as a Class Property
- From: Michael Fesser
- Re: Using a Resource as a Class Property
- References:
- Using a Resource as a Class Property
- From: Sanders Kaufman
- Re: Using a Resource as a Class Property
- From: Michael Fesser
- Re: Using a Resource as a Class Property
- From: Sanders Kaufman
- Re: Using a Resource as a Class Property
- From: Michael Fesser
- Re: Using a Resource as a Class Property
- From: Sanders Kaufman
- Re: Using a Resource as a Class Property
- From: Michael Fesser
- Using a Resource as a Class Property
- Prev by Date: Re: Are PHP libraries linked dynamically or statically?
- Next by Date: Re: Using a Resource as a Class Property
- Previous by thread: Re: Using a Resource as a Class Property
- Next by thread: Re: Using a Resource as a Class Property
- Index(es):
Relevant Pages
|