Re: [PHP] public readonly variables

2010-04-23 Thread Ashley Sheridan
On Fri, 2010-04-23 at 19:03 +0200, Peter Lind wrote: > On 23 April 2010 18:26, Ashley Sheridan wrote: > > > > On Fri, 2010-04-23 at 12:25 -0400, Adam Richardson wrote: > > > > On Fri, Apr 23, 2010 at 12:21 PM, Peter Lind wrote: > > > > > On 23 April 2010 18:10, Ashley Sheridan wrote: > > > > I

Re: [PHP] public readonly variables

2010-04-23 Thread Peter Lind
On 23 April 2010 18:26, Ashley Sheridan wrote: > > On Fri, 2010-04-23 at 12:25 -0400, Adam Richardson wrote: > > On Fri, Apr 23, 2010 at 12:21 PM, Peter Lind wrote: > > > On 23 April 2010 18:10, Ashley Sheridan wrote: > > > I think for now I'll just resort to leaving it as a public variable. > >

Re: [PHP] public readonly variables

2010-04-23 Thread Ashley Sheridan
On Fri, 2010-04-23 at 12:25 -0400, Adam Richardson wrote: > On Fri, Apr 23, 2010 at 12:21 PM, Peter Lind wrote: > > > On 23 April 2010 18:10, Ashley Sheridan wrote: > > > I think for now I'll just resort to leaving it as a public variable. > > > I'll leave the specific set function for it in an

Re: [PHP] public readonly variables

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 12:21 PM, Peter Lind wrote: > On 23 April 2010 18:10, Ashley Sheridan wrote: > > I think for now I'll just resort to leaving it as a public variable. > > I'll leave the specific set function for it in and just hope that is > > used instead! As it's only me who'll be using

Re: [PHP] public readonly variables

2010-04-23 Thread Peter Lind
On 23 April 2010 18:10, Ashley Sheridan wrote: > I think for now I'll just resort to leaving it as a public variable. > I'll leave the specific set function for it in and just hope that is > used instead! As it's only me who'll be using it for the time being, I > can always yell at myself later if

Re: [PHP] public readonly variables

2010-04-23 Thread Ashley Sheridan
On Fri, 2010-04-23 at 11:57 -0400, Adam Richardson wrote: > On Fri, Apr 23, 2010 at 6:19 AM, Richard Quadling > wrote: > > > On 23 April 2010 10:55, Ashley Sheridan wrote: > > > I know the subject line might sound a bit like an oxymoron, but bear > > > with me! > > > > > > What I'd like to have

Re: [PHP] public readonly variables

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 6:19 AM, Richard Quadling wrote: > On 23 April 2010 10:55, Ashley Sheridan wrote: > > I know the subject line might sound a bit like an oxymoron, but bear > > with me! > > > > What I'd like to have is a property of an object that behaves like a > > public variable when it

Re: [PHP] public readonly variables

2010-04-23 Thread Richard Quadling
On 23 April 2010 10:55, Ashley Sheridan wrote: > I know the subject line might sound a bit like an oxymoron, but bear > with me! > > What I'd like to have is a property of an object that behaves like a > public variable when it comes to reading, but like a protected one when > it comes to writing,

[PHP] public readonly variables

2010-04-23 Thread Ashley Sheridan
I know the subject line might sound a bit like an oxymoron, but bear with me! What I'd like to have is a property of an object that behaves like a public variable when it comes to reading, but like a protected one when it comes to writing, as it would make my code a lot easier to read. I know abo