2012-12-29 01:42:16 +05:30
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace OAuth2\Storage;
|
|
|
|
|
|
|
|
interface ScopeInterface
|
|
|
|
{
|
2013-01-29 19:55:49 +05:30
|
|
|
/**
|
|
|
|
* 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 22:40:30 +05:30
|
|
|
public function getScope($scope);
|
2012-12-29 01:42:16 +05:30
|
|
|
}
|