Re: [PHP-DEV] __get() "feature"

2004-11-11 Thread Jason Perkins
On Nov 11, 2004, at 1:17 PM, Marcus Boerger wrote: class sales_order { ... public function has_a( $class ) { $this->relationships[ $class ] = 'has_a'; } public function __get( $class ) { if(array_key_exists( $class, $this->relationships )) { if( $this->relationshi

[PHP-DEV] __get() "feature"

2004-11-11 Thread Jason Perkins
I've ran into an issue using __get() and want to ascertain if this is how it was intended to work or if it's a bug. The general notion of what I'm attempting to accomplish using __get() is that a given object will potentially contain other objects, but these contained objects aren't known (or g