[UPHPU] Nested Classes?
Roberto Mello
roberto.mello at gmail.com
Wed Apr 16 10:36:17 MDT 2008
But the code posted by Craig doesn't give you a function pointer.
Database.xmlAdapter will just be an instance of XMLAdapter, not a
function pointer. Or were you referring to something else?
Roberto
On Wed, Apr 16, 2008 at 10:04 AM, Nathan Lane <nathamberlane at gmail.com> wrote:
> That might be a possibility in PHP - a function pointer or delegate like in
> JavaScript. I'll try it out.
>
>
> On Wed, Apr 16, 2008 at 10:02 AM, Craig Jackson <CJackson at cirris.com> wrote:
> >
> > class Database {
> > private $xmlAdapter;
> >
> > function newXmlAdapter() {
> > $this->xmlAdapter = new XMLAdapter();
> > }
> >
> > }
> >
> > class XMLAdapter {
> >
> > }
More information about the UPHPU
mailing list