Issues related to Oauth2

Source: Internet
Author: User
Tags openid

Although know Oauth2::getmyopenid () is to obtain the user OpenID method, want to ask next Getmyopenid () This is a fixed usage?
There is a "::" Double colon is a fixed wording or have other meanings? Want to know it and know why. Trouble the great God to bother.

Reply content:

Although know Oauth2::getmyopenid () is to obtain the user OpenID method, want to ask next Getmyopenid () This is a fixed usage?
There is a "::" Double colon is a fixed wording or have other meanings? Want to know it and know why. Trouble the great God to bother.

  • Getmyopenid () is a method name, a method name inside a Oauth2 class. You can understand that as a fixed usage, you can return to your OpenID based on the different parameters you pass in.

  • A double colon means that this is a static method that needs to be used so that if it is not static, the arrow points to the

The scope resolution operator (also known as Paamayim Nekudotayim) or, more simply, a pair of colons, can be used to access static members, class constants, and to override properties and methods in a class.

There's nothing more than an official explanation.
Http://php.net/manual/zh/lang ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.