Re: SOAP + globals

From: Date: Tue, 16 Apr 2002 08:11:26 +0000
Subject: Re: SOAP + globals
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5541@lists.php.net to get a copy of this message
Sunday, April 14, 2002, 9:35:28 PM, Tomas V.V.Cox wrote: > Shane Caraveo wrote: >> >> Yeah, I've had those globals on my mind for the past couple days. I >> want to eliminate them, but they are used in several classes, and I also >> dislike the idea of passing them around as params. Any thoughts on this >> appreciated. > What about PEAR static vars? (@see getStaticProperty()) Anything but globals I would say. Either make them part of the SOAP classes, or use some trickery with static. I haven't looked at how the code uses these global vars but I don't see a reason why they can't be defined as a part of a parent SOAP class all the other classes extend from. -- Kjartan <kjartan@zind.net> (http://natrak.net/) :: "Truth is the most valuable thing we have. Let us economize it." - Mark Twain

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