Re: Error Messages and Scope Resolution

From: Date: Tue, 13 Feb 2001 19:29:20 +0000
Subject: Re: Error Messages and Scope Resolution
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-1333@lists.php.net to get a copy of this message
:: works like the following: If you call a class method from outside of an instanciated object or outside of an inheritance hierarchy, then there is no $this available to that class method. If you call a class method from an instanciated object, and that method is inherited, it will have $this available to it. John On Tue, 13 Feb 2001, Robert Kelly wrote: > > > 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 > -- John Donagher Application Engineer Intacct Corp. - Powerful Accounting on the Web 408-395-0989 720 University Ave. Los Gatos CA 95032 www.intacct.com Public key available off http://www.keyserver.net Key fingerprint = 4024 DF50 56EE 19A3 258A D628 22DE AD56 EEBE 8DDD

« previous php.pear (#1333) next »