Re: [PHP] public readonly variables

2010-04-23 Thread Richard Quadling
On 23 April 2010 10:55, Ashley Sheridan a...@ashleysheridan.co.uk 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

Re: [PHP] public readonly variables

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 6:19 AM, Richard Quadling rquadl...@googlemail.comwrote: On 23 April 2010 10:55, Ashley Sheridan a...@ashleysheridan.co.uk 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

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 rquadl...@googlemail.comwrote: On 23 April 2010 10:55, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I know the subject line might sound a bit like an oxymoron, but bear with

Re: [PHP] public readonly variables

2010-04-23 Thread Peter Lind
On 23 April 2010 18:10, Ashley Sheridan a...@ashleysheridan.co.uk 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

Re: [PHP] public readonly variables

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 12:21 PM, Peter Lind peter.e.l...@gmail.com wrote: On 23 April 2010 18:10, Ashley Sheridan a...@ashleysheridan.co.uk 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

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 peter.e.l...@gmail.com wrote: On 23 April 2010 18:10, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I think for now I'll just resort to leaving it as a public variable. I'll leave

Re: [PHP] public readonly variables

2010-04-23 Thread Peter Lind
On 23 April 2010 18:26, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2010-04-23 at 12:25 -0400, Adam Richardson wrote: On Fri, Apr 23, 2010 at 12:21 PM, Peter Lind peter.e.l...@gmail.com wrote: On 23 April 2010 18:10, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I think

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 a...@ashleysheridan.co.uk wrote: On Fri, 2010-04-23 at 12:25 -0400, Adam Richardson wrote: On Fri, Apr 23, 2010 at 12:21 PM, Peter Lind peter.e.l...@gmail.com wrote: On 23 April 2010 18:10,