Jump to content

Archived

This topic is now archived and is closed to further replies.

Cell0518

' :: ' - Meaning?

Recommended Posts

I know this is an odd question, but after reading some code (Gallery 2), I see:

[code]GalleryCoreApi::requireOnce([/code]

What does the :: between the GalleryCoreApi mean?  The Core Api is a class and I understand requireOnce, but usually it's require_once(....

is :: the same as -> ?

Thanks,
CL.

Share this post


Link to post
Share on other sites
The :: is to do with OOP and its called the [url=http://uk.php.net/manual/en/keyword.paamayim-nekudotayim.php]Scope Resolution Operator[/url].

It allows you to call objects/methods from within a class.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.