Re: Re: [PEPr] Comment on RFC::ProtectedMembers

From: Date: Mon, 28 Jun 2004 08:50:49 +0000
Subject: Re: Re: [PEPr] Comment on RFC::ProtectedMembers
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-31267@lists.php.net to get a copy of this message
Justin Patrin wrote: >On Sun, 27 Jun 2004 09:44:48 +0200, Bertrand Mansion ><bmansion@mamasam.com> wrote: >> >> IIRC, you explained in a recent message that, in DataObject, you use the '_' >> prefix on public variables in order to have them look different from the >> variables associated with table fields. In a way, you took the liberty not to >> follow PEAR CS in order to serve your code readability in a way you were >> thinking would help the end-users. >> > >Actually, I said that and it was for DB_DataObject_FormBuilder, not >DB_DataObject. The variables are members of DataObjects, but they're >used by FormBuilder. This is a non-issue anyway as we're planning on >changing it to fb_ before 1.0 to make it obvious and not confuse them >with private vars. Because of an underscore, you break your API... So, will you fb_ prefixed variables be private, protected or public ? Bertrand Mansion Mamasam

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