I'm forwarding this, I think Mike accidentally didn't send a copy of it to
the list...

-----Original Message-----
From: Mike Vincent [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 02, 2005 4:32 AM
To: David Zülke
Subject: Re: [agavi-dev] Singleton Models

On 7/1/05, David Zülke <[EMAIL PROTECTED]> wrote:
> > This is no longer the case as of 5.0.3 is_subclass_of() will accept a
> > string argument in place of the object to make class comparisons. It
> 
> I know. I cannot use 5.0.3 or later for a client project, they have a
server
> running 5.0.1. And, after all, it's a PHP5 MVC framework, not a PHP5.0.3
> one.

That's ridiculous, http://www.php.net/ChangeLog-5.php#5.0.3, we're
talking about bug fixes and it was released over six months ago so why
cant they be upgraded? *shrug* I dont think it's unreasonable to
expect you to be using the latest stable release of 5.0.x so just to
clarify things, I dont think 'PHP5' was ever meant to mean 5.0.0,
rather 5.x, same as 'PHP4' apps dont imply 4.0.0. I would hold the x
to the latest 'stable' release though, which at this time is 5.0.4.

> > does not, however, work for interfaces. :(
> 
> And if interfaces were used, every model that derives Model and implements
> Singleton would have to implement getInstance() on its own, which is not
the
> ideal solution IMO ;)

Nah, it doesnt have to be one or the other, it can be both. Any class
implementing the singleton interface would need to implement the
methods it specified in order to be called a singleton. There's
nothing wrong with implementing the interface in an abstract object
and extending that, if there's value in doing that.

It's moot right now since we arent developing with interfaces at this time.


-Mike



_______________________________________________
agavi-dev mailing list
[email protected]
http://labworkz.com/cgi-bin/mailman/listinfo/agavi-dev

Reply via email to