Jump to content


Photo

' :: ' - Meaning?


  • Please log in to reply
1 reply to this topic

#1 Cell0518

Cell0518
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts
  • LocationUSA / Japan (US Navy)

Posted 18 August 2006 - 03:55 PM

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

GalleryCoreApi::requireOnce(

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.
Chris

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 18 August 2006 - 04:33 PM

The :: is to do with OOP and its called the Scope Resolution Operator.

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users