Re: [PHP-PEAR] Error Messages and Scope Resolution

[email protected] (John Donagher)
Newsgroups php.pear
Message-ID <[email protected]>
:: 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
> [email protected]
> 

-- 

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.