Re: [PHP] Re: Using Static Class Variables to Access Globally

2008-09-24 Thread Nathan Rixham
Nathan Nobbe wrote: On Wed, Sep 24, 2008 at 6:28 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: /me prefers singleton with __get and __set but each to their own :) Do you mean registry? could be, but it doesnt have to. when i think of a registry, i think of something that stores a single ins

Re: [PHP] Re: Using Static Class Variables to Access Globally

2008-09-24 Thread Nathan Nobbe
On Wed, Sep 24, 2008 at 6:28 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > > /me prefers singleton with __get and __set but each to their own :) > > Do you mean registry? could be, but it doesnt have to. when i think of a registry, i think of something that stores a single instance of several

Re: [PHP] Re: Using Static Class Variables to Access Globally

2008-09-24 Thread Richard Heyes
> /me prefers singleton with __get and __set but each to their own :) Do you mean registry? -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.phpguru.org/RGraph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Using Static Class Variables to Access Globally

2008-09-24 Thread Colin Guthrie
Nathan Nobbe wrote: in many cases, people like to drive client code through methods, which, given the current set of language features in php, could be reason to favor a singleton w/ __get() & __set() methods defined. you still have the same 'global' scope, except that the data doesnt have to be