Re: Re: [NEWBIE GUIDE] For the benefit of new members

From: Date: Tue, 25 Jan 2005 22:38:33 +0000
Subject: Re: Re: [NEWBIE GUIDE] For the benefit of new members
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-207298@lists.php.net to get a copy of this message
> Oh and by the way, whenever I'm creating the skeleton of a new class I > will usually insert the following code snippet into the functions to let > me know I have to come back and actually implement it later. > > if ($class = __CLASS__) { > trigger_error(__CLASS__ . '::' . __FUNCTION__ . ' is not finished.', > E_USER_WARNING); > } else { > trigger_error(__FUNCTION__ . ' is not finished.', E_USER_WARNING); > } Why the assignment to $class? Is that supposed to be == or is it just allowing for static class/method calls with no object instantiated? And would not 'if (__CLASS__)' serve just as well? -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#207298) next »