RE: [PHP] Class question

From: Date: Wed, 20 Feb 2002 21:00:46 +0000
Subject: RE: [PHP] Class question
Groups: php.general 
Request: Send a blank email to php-general+get-85596@lists.php.net to get a copy of this message
The whole idea with object-oriented programming is polymorphism and encapsulation. You do not want your classes to access global variables but access that information through objects and messaging between objects. If you are referring to the use of non-member as being outside of the class, then again you want to use objects. As for practice, it is up to you. For me, no... Ray Hunter Firmware Engineer ENTERASYS NETWORKS -----Original Message----- From: Chris Boget [mailto:chris@wild.net] Sent: Wednesday, February 20, 2002 1:58 PM To: PHP General Subject: [PHP] Class question I'm still kind of new when it comes to dealing with classes. I'm curious, is it accepted practice for member functions of your class to: * access global variables * use non member, user defined functions Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#85596) next »