Show:

Users_OAuth Class

Extends Base_Users_OAuth
Module: Users

Class representing 'OAuth' rows in the 'Users' database You can create an object of this class either to access its non-static methods, or to actually represent a oAuth row in the Users database.

Item Index

Methods

__set_state

(
  • $array
)
Users_OAuth

Implements the __set_state method, so it can work with with var_export and be re-imported successfully.

Parameters:

  • $array Array

Returns:

Users_OAuth:

Class instance

requestedScope

(
  • $client_id
  • [$throwIfMissing=false]
  • [$scopes]
)
Array static

Get an array of ($code => $title) pairs from space-separated list in $_REQUEST['scope'], defaulting to the "all" scope.

Parameters:

  • $client_id String

    The id of the client app

  • [$throwIfMissing=false] Boolean optional
  • [$scopes] Reference optional

    this is filled with an array

Returns:

Array:

setUp

()

The setUp() method is called the first time an object of this class is constructed.