Base class for objects with get/set w/o overload

From: Date: Mon, 22 Apr 2002 21:03:49 +0000
Subject: Base class for objects with get/set w/o overload
Groups: php.general 
Request: Send a blank email to php-general+get-94061@lists.php.net to get a copy of this message
I'm implementing a web site at an ISP (like many it seems) that has not enabled overload(). I'm accustomed to the Perl world, where I use a base class to do get/set methods by inserting them into the symbol table. From what I've read, the way to do this in PHP is to use overload(). My other alternative is to have something like get('varname'), set('varname', 'value') in a base class for my object. Is that they way to do this, or can you point me to a better way? I don't wish to manually implement methods for every variable in every class I have. -- Barry Hoggard Tristan Media LLC e: barry@tristanmedia.com p: 212-627-1596 aim: hoggardb

« previous php.general (#94061) next »