Re: how to mark protected properties?

From: Date: Tue, 08 Jun 2004 09:39:38 +0000
Subject: Re: how to mark protected properties?
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-30144@lists.php.net to get a copy of this message
Lukas Smith wrote:
Mika Tuupola wrote:
On Tue, 8 Jun 2004, Bertrand Mansion wrote:
IMHO, as silly as sounds to prefix all vars with '_', sounds to create dozen methods/calls for getting access to those protected vars.
If you are clever, all you need is 2 methods. That's called key-value coding.
    Object overloading is your friend. Look at __call() in the
    end of this source:
    http://www.appelsiini.net/~tuupola/php/DB_DataContainer/source/
yes but we are talking about php5 only here
To make it clear what I meant .. __call() only works in php5 regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07

« previous php.pear.dev (#30144) next »