On Thu, 25 Aug 2005, Christian Schneider wrote:

> This can be easily done with
> 
> function __get($name)
> {
>         $get = "get_$name";
> 
>         return $this->$get();
> }
> 
> function __set($name, $value)
> {
>         $set = "set_$name";
> 
>         $this->$set($value);
> }
> 
> in your base class (the function names are then get_fullName/set_fullName.

But that has plenty of problems, like I described here:
http://news.php.net/php.internals/17491

Derick
-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to