It's protected to allow sublasses to implement the singleton functionality
themselves. You cannot redeclare a private member, and $instance is the
common name for the instance variable.

- David


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of graeme
> Sent: Saturday, July 02, 2005 11:25 AM
> To: 'Agavi Development'
> Subject: [agavi-dev] Singleton
> 
> Just had a peek at the code for SingletonModel. (revision 151)
> 
> I think the $instance array should be private. Only that class wants to
> be able to manage the array list whilst, yes constructors should be
> protected allowing the subclasses to modify the constructor.
> 
> graeme.
> 
> _______________________________________________
> agavi-dev mailing list
> [email protected]
> http://labworkz.com/cgi-bin/mailman/listinfo/agavi-dev



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

Reply via email to