Re: Property Overloading RFC

From: Date: Thu, 04 Aug 2005 07:09:19 +0000
Subject: Re: Property Overloading RFC
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-17523@lists.php.net to get a copy of this message
On Wed, 3 Aug 2005, Andrei Zmievski wrote: > The whole point of these "virtual" properties is that their names can be > parameterized. If you have 1000 of these variables (in a DB or somewhere), how > would you declare them as "abstract" or "virtual"? Then you don't do it - it's not a requirement... just an optional thing (and ofcourse you can't do the __have_prop() thing then that you suggested below. > > This is ofcourse overly complicated. A better workable solution would be - > > without breaking BC (suggestions for syntax here are very welcome): [snip] > How about a __have_prop() method that you can call to find out if a certain > virtual property exists? Works for me, but it needs to be able to called statically (::) and dynamically (->). Derick

« previous php.internals (#17523) next »