You are here

public function OAuthStorePostgreSQL::deleteConsumerRequestToken in Lingotek Translation 7.2

Same name and namespace in other branches
  1. 7.7 lib/oauth-php/library/store/OAuthStorePostgreSQL.php \OAuthStorePostgreSQL::deleteConsumerRequestToken()
  2. 7.3 lib/oauth-php/library/store/OAuthStorePostgreSQL.php \OAuthStorePostgreSQL::deleteConsumerRequestToken()
  3. 7.4 lib/oauth-php/library/store/OAuthStorePostgreSQL.php \OAuthStorePostgreSQL::deleteConsumerRequestToken()
  4. 7.5 lib/oauth-php/library/store/OAuthStorePostgreSQL.php \OAuthStorePostgreSQL::deleteConsumerRequestToken()
  5. 7.6 lib/oauth-php/library/store/OAuthStorePostgreSQL.php \OAuthStorePostgreSQL::deleteConsumerRequestToken()

Delete a consumer token. The token must be a request or authorized token.

Parameters

string token:

Overrides OAuthStoreAbstract::deleteConsumerRequestToken

File

lib/oauth-php/library/store/OAuthStorePostgreSQL.php, line 1282

Class

OAuthStorePostgreSQL

Code

public function deleteConsumerRequestToken($token) {
  $this
    ->query('
                    DELETE FROM oauth_server_token
                    WHERE ost_token      = \'%s\'
                      AND ost_token_type = \'request\'
                    ', $token);
}