You are here

public function OAuthStoreOracle::deleteConsumerRequestToken in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.2 lib/oauth-php/library/store/OAuthStoreOracle.php \OAuthStoreOracle::deleteConsumerRequestToken()
  2. 7.3 lib/oauth-php/library/store/OAuthStoreOracle.php \OAuthStoreOracle::deleteConsumerRequestToken()
  3. 7.4 lib/oauth-php/library/store/OAuthStoreOracle.php \OAuthStoreOracle::deleteConsumerRequestToken()
  4. 7.5 lib/oauth-php/library/store/OAuthStoreOracle.php \OAuthStoreOracle::deleteConsumerRequestToken()
  5. 7.6 lib/oauth-php/library/store/OAuthStoreOracle.php \OAuthStoreOracle::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/OAuthStoreOracle.php, line 1055

Class

OAuthStoreOracle

Code

public function deleteConsumerRequestToken($token) {
  $sql = "BEGIN SP_DEL_CONSUMER_REQUEST_TOKEN(:P_TOKEN, :P_RESULT); END;";

  // parse sql
  $stmt = oci_parse($this->conn, $sql) or die('Can not parse query');

  // Bind In and Out Variables
  oci_bind_by_name($stmt, ':P_TOKEN', $token, 255);
  oci_bind_by_name($stmt, ':P_RESULT', $result, 20);

  //Execute the statement
  oci_execute($stmt);
}