--- Tim Converse <[EMAIL PROTECTED]> wrote: > > --- Brad LaFountain <[EMAIL PROTECTED]> wrote: > > > 2) Interfaces as they exist in java don't really give you > > much in a stripting > > language but if you insist on having something like that > > you can curently do it > > with the zend1. > > > > class temperature { > > function __construct($value) {} > > function toCelcius() {} > > function toFarenheight() {} > > } > > > > just use that class and extend away.... > > Brad --- > > Not the same thing at all, as I'm sure you know. You > usually want interfaces in addition to whatever (single) > inheritance structure you already have.
Well the zend1 example I gave was a workaround. But that is why I said if the deligation gets worked out in zend2 then you could acually do similar stuff. BTW I do use some stuff like this in some of my classes. I'll create a function with no implementation and any extending class can override that method and use its functionality (usally for event like stuff), so I don't have to call method_exists() before trying to call the method. - Brad __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php