Users_OAuth Class
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
- requestedScope static
- setUp
Methods
__set_state
(
Users_OAuth
-
$array
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
(
Array
static
-
$client_id
-
[$throwIfMissing=false]
-
[$scopes]
Get an array of ($code => $title) pairs from space-separated list in $_REQUEST['scope'], defaulting to the "all" scope.
Parameters:
-
$client_id
StringThe id of the client app
-
[$throwIfMissing=false]
Boolean optional -
[$scopes]
Reference optionalthis is filled with an array
Returns:
Array:
setUp
()
The setUp() method is called the first time an object of this class is constructed.