Re: Re: [PHP] PHP5 object construct

From: Date: Sat, 23 Sep 2006 00:52:24 +0000
Subject: Re: Re: [PHP] PHP5 object construct
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-242129@lists.php.net to get a copy of this message
PHP has __set and __get in some versions... I think that's what you are looking for.
Yes, but exactly. They'll do if there is no other way (as below)...
If you told us which particular feature in that pile of code you're asking about, it would help...
the ability to set an accessor like such: public $Bob {
    set( $var ) {
      $this->bob = $var;
    }
    get() {
      return $this->bob;
    }
} thnx, Chris

« previous php.general (#242129) next »