Pascal Van Hecke wrote:

> http://www.nathan-syntronics.de/midgard/oop/extending.html
> , with
> http://www.nathan-syntronics.de/midgard/oop/baseclasses/CArticle.html
> as an example.  It turns out that in order to load the
> data, it has to be manually copied from a dummy result
> of mgd_getXXXXX.

I hadn't thought of that. And you can't re-cast an object in PHP, so
   $this = (CArticle)mgd_get_article(...)
doesn't work. By Zends own admission, OOP was pretty much a bolt-on
(and I'd venture to say a weak attempt at that) for PHP.

I could add a constructor, which should make extending the classes
easier. I can only add one per class, though, since PHP doesn't allow
multiple constructors. I'll add the id based one, when I'm finished with
the fixes on mmp.

Emile


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to