Re: Error Messages and Scope Resolution

From: Date: Tue, 13 Feb 2001 23:11:22 +0000
Subject: Re: Error Messages and Scope Resolution
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-1332@lists.php.net to get a copy of this message
Error Messages and Scope ResolutionUsing the :: scope resolution operator, you can access class methods without using the new operator to declare an instance. This works: <?php class test { function printError() { print "This is an error"; } } test::printError(); ?> Don't know if that helps. Regards, Paul Meagher ----- Original Message ----- From: Robert Kelly To: 'php-pear@lists.php.net' Sent: Tuesday, February 13, 2001 4:35 PM Subject: [PHP-PEAR] Error Messages and Scope Resolution My forehead's a bit bloody from beating up against this. How does the scope resolution operator (::) function within PHP? I am trying to implement PEAR_Error just like the DB.php does and I am failing miserably. I can't find any RTFM on php.net or google, I see C++ stuff, but it doesn't explain what is required to occur. Any help would be excellent. Thanks! -Bob Kelly rkelly@insight.com

« previous php.pear (#1332) next »