Re: [PHP] class variables and methods

2001-08-19 Thread Tom Carter
List [EMAIL PROTECTED] Sent: Sunday, August 19, 2001 3:34 AM Subject: Re: [PHP] class variables and methods Joe, There are varying opinions on this issue. The argument for methods is that it hides the internal structure of your class. This is always a good thing. This means

RE: [PHP] class variables and methods

2001-08-19 Thread Joe Sheble \(Wizaerd\)
?? -Original Message- From: Tom Carter [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 19, 2001 2:19 AM To: Andrew Libby; Joe Sheble (Wizaerd) Cc: General PHP List Subject: Re: [PHP] class variables and methods There was a long discussion on this in a java forum I am part

Re: [PHP] class variables and methods

2001-08-19 Thread Tom Carter
(Wizaerd) Cc: General PHP List Subject: Re: [PHP] class variables and methods There was a long discussion on this in a java forum I am part of, the product of which was basically this... 1. All variables in a class are best left to be private (not sure PHP has this, but the programmer

[PHP] class variables and methods

2001-08-18 Thread Joe Sheble \(Wizaerd\)
I've been doing some reading up on OOP in PHP, and looking at some of the classes available on the web, and I've got what is probably a stupid question. I've seen this many many times.. class someclass { var $somevar = someval; function set( $key, $val ) {

Re: [PHP] class variables and methods

2001-08-18 Thread Andrew Libby
Joe, There are varying opinions on this issue. The argument for methods is that it hides the internal structure of your class. This is always a good thing. This means that the internals of the class can be changed, but the user interface (the user is the programmer here) does not change.