Spacing fixes and fixed sessionScopes() example query

This commit is contained in:
Alex Bilbie 2012-11-20 15:27:15 +00:00
parent 21f48c0491
commit fead044830

View File

@ -6,17 +6,17 @@ interface Database
{
/**
* Validate an access token and return the session details.
*
*
* Database query:
*
*
* <code>
* SELECT id, owner_type, owner_id FROM oauth_sessions WHERE access_token =
* $accessToken AND stage = 'granted' AND
* access_token_expires > UNIX_TIMESTAMP(now())
* </code>
*
*
* Response:
*
*
* <code>
* Array
* (
@ -25,7 +25,7 @@ interface Database
* [owner_id] => (string) The session owner's ID
* )
* </code>
*
*
* @param string $accessToken The access token
* @return array|bool Return an array on success or false on failure
*/
@ -33,16 +33,16 @@ interface Database
/**
* Returns the scopes that the session is authorised with.
*
*
* Database query:
*
*
* <code>
* SELECT scope FROM oauth_session_scopes WHERE access_token =
* '291dca1c74900f5f252de351e0105aa3fc91b90b'
* SELECT scope FROM oauth_session_scopes WHERE session_id =
* $sessionId
* </code>
*
*
* Response:
*
*
* <code>
* Array
* (
@ -51,7 +51,7 @@ interface Database
* ...
* )
* </code>
*
*
* @param int $sessionId The session ID
* @return array A list of scopes
*/