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"?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • 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.
http://www.php.net/manual/language.oop5.basic.php

"getMenu" is a static method of the jSite class.
http://www.php.net/manual/language.oop5.static.php
  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1585

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 70 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-2014. Ozzu® is a registered trademark of Unmelted, LLC.