Re: how to mark protected properties?

From: Date: Tue, 08 Jun 2004 12:50:54 +0000
Subject: Re: how to mark protected properties?
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-30156@lists.php.net to get a copy of this message
Bertrand Mansion wrote:
Tomas V.V.Cox 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.
Please read it again: "methods/calls" (replace "/" with "or"), specially the "calls". Now imagine the cost inside a > 100 loop, any basic php performance tutorial will tell you it. Tomas V.V.Cox

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