Re: [PHP-DEV] Getters/Setters and parent getter/setter access

2011-11-19 Thread Yasuo Ohgaki
Sure. I did. https://gist.github.com/1379592 -- Yasuo Ohgaki yohg...@ohgaki.net 2011/11/20 Paul Dragoonis : > Link us to a http://gist.github.com paste please Yasou. Thanks. > > On Sat, Nov 19, 2011 at 9:45 PM, Yasuo Ohgaki wrote: >> It seems gmail broke newlines :( >> but you'll see the idea.

Re: [PHP-DEV] Getters/Setters and parent getter/setter access

2011-11-19 Thread Paul Dragoonis
Link us to a http://gist.github.com paste please Yasou. Thanks. On Sat, Nov 19, 2011 at 9:45 PM, Yasuo Ohgaki wrote: > It seems gmail broke newlines :( > but you'll see the idea. > > -- > Yasuo Ohgaki > yohg...@ohgaki.net > > > > 2011/11/20 Yasuo Ohgaki : >> This is not a alternate syntax suggest

Re: [PHP-DEV] Getters/Setters and parent getter/setter access

2011-11-19 Thread Yasuo Ohgaki
This is not a alternate syntax suggestion, but a currently working solution (well partial) r_property[$name]) return $this->$name;else trigger_error("Access to read protected property");} public function __set($name, $value) { if ($this->w_property[$name]) $this->$name = $value; else

Re: [PHP-DEV] Getters/Setters and parent getter/setter access

2011-11-19 Thread Yasuo Ohgaki
It seems gmail broke newlines :( but you'll see the idea. -- Yasuo Ohgaki yohg...@ohgaki.net 2011/11/20 Yasuo Ohgaki : > This is not a alternate syntax suggestion, but a currently working > solution (well partial) > > ($this->r_property[$name])      return $this->$name;    else > trigger_error