2012-12-28 15:12:16 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace OAuth2\Storage;
|
|
|
|
|
|
|
|
interface ScopeInterface
|
|
|
|
{
|
2013-01-29 14:25:49 +00:00
|
|
|
/**
|
|
|
|
* Return information about a scope
|
|
|
|
*
|
|
|
|
* Example SQL query:
|
|
|
|
*
|
|
|
|
* <code>
|
|
|
|
* SELECT * FROM scopes WHERE scope = $scope
|
|
|
|
* </code>
|
|
|
|
*
|
|
|
|
* Response:
|
|
|
|
*
|
|
|
|
* <code>
|
|
|
|
* Array
|
|
|
|
* (
|
|
|
|
* [id] => (int) The scope's ID
|
|
|
|
* [scope] => (string) The scope itself
|
|
|
|
* [name] => (string) The scope's name
|
|
|
|
* [description] => (string) The scope's description
|
|
|
|
* )
|
|
|
|
* </code>
|
|
|
|
*
|
|
|
|
* @param string $scope The scope
|
|
|
|
* @return bool|array If the scope doesn't exist return false
|
|
|
|
*/
|
2013-02-04 17:10:30 +00:00
|
|
|
public function getScope($scope);
|
2012-12-28 15:12:16 -05:00
|
|
|
}
|