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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> wrote:
> >
> > class Database {
> > private $xmlAdapter;
> >
> > function newXmlAdapter() {
> > $this->xmlAdapter = new XMLAdapter();
> > }
> >
> > }
> >
> > class XMLAdapter {
> >
> > }
_______________________________________________
UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net