terminology of php operator

  • artcoder
  • Student
  • Student
  • User avatar
  • Posts: 89
  • Loc: United States

Post 3+ Months Ago

If I see the following in Joomla code...

Code: [ Select ]
$menu = JSite::getMenu();

What is the colon colon operator called? I don't see that listed here.

What is "JSite" called? Is that "object", "class", "static class"? Is that a "class" or "an instance of class"?

And what is "getMenu()" in the PHP terminology. Is is "method", "function", "static function", "class function"?
  • joebert
  • Genius
  • Genius
  • User avatar
  • Posts: 13511
  • Loc: Florida

Post 3+ Months Ago

The double-colon is known as the Scope Resolution Operator or Paamayim-nekudotayim.
http://www.php.net/manual/language.oop5 ... otayim.php

"jSite" is the class name.

"getMenu" is a static method of the jSite class.
  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1587

Post 3+ Months Ago

BTW, that's Hebrew for double colon. At first I thought it was Eskimo... :P

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 51 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.