Re: Some changes in the Config package

From: Date: Sat, 23 Nov 2002 10:18:02 +0000
Subject: Re: Some changes in the Config package
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11029@lists.php.net to get a copy of this message
<alan@akbkhome.com> wrote : > Bertrand Mansion wrote: > >> On the other hand, we still need a toString() method in the Container object >> in case one want to get the Container as a formatted string. But this time, >> it will call the toString() function from the outside. I think it will call >> something like toString($this) and return the result. >> >> > > I'm gessing this is what you are after.. - either that or I missed > something.. > class xxx_container { > .... > function toString() { > xxx_writer::toString(); > } > } > > using the static method call to provide 'sudo' aggregation. (as $this), > gets passed around automatically. Thanks Alan, I'll try that. Bertrand Mansion Mamasam

« previous php.pear.dev (#11029) next »