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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php