[UPHPU] Nested Classes?
William Attwood
wattwood at gmail.com
Wed Apr 16 10:40:18 MDT 2008
You cannot nest classes in PHP 5 or PHP 6.
Why are you wanting to?
-Will
On Wed, Apr 16, 2008 at 10:36 AM, Roberto Mello <roberto.mello at gmail.com>
wrote:
> 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 {
> > >
> > > }
>
> _______________________________________________
>
> UPHPU mailing list
> UPHPU at uphpu.org
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
>
More information about the UPHPU
mailing list