PHP has __set and __get in some versions...
I think that's what you are looking for.
If you told us which particular feature in that pile of code you're
asking about, it would help...
I still wouldn't know the answer, as I don't do OOP in PHP much, but
somebody might.
On Fri, September 22, 2006 7:32 pm, Chris Boget wrote:
>> well, perhaps I'm not seeing what it is that you're looking for.
>
> No, I'm not sure you are. Take a look at my sample code again. Pay
> particular attention to how both $bob and $Bob are defined.
>
> class MyClass {
>
> private $bob;
>
> public $Bob {
> set( $var ) {
> $this->bob = $var;
>
> }
> get() {
> return $this->bob;
>
> }
> }
> }
>
> thnx,
> Chris
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php