You are here

function LingotekOAuthRequest::getParam in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.7 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::getParam()
  2. 7.5 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::getParam()
  3. 7.6 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::getParam()

* Get a parameter, value is always urlencoded * *

Parameters

string name: * @param boolean urldecode set to true to decode the value upon return * @return string value false when not found

8 calls to LingotekOAuthRequest::getParam()
LingotekOAuthRequester::doRequest in lib/oauth-php/library/LingotekOAuthRequester.php
* Perform the request, returns the response code, headers and body. * *
LingotekOAuthRequestSigner::sign in lib/oauth-php/library/LingotekOAuthRequestSigner.php
* Sign our message in the way the server understands. * Set the needed oauth_xxxx parameters. * *
LingotekOAuthRequestVerifier::verifyExtended in lib/oauth-php/library/LingotekOAuthRequestVerifier.php
* Verify the request * *
LingotekOAuthRequestVerifier::verifyIfSigned in lib/oauth-php/library/LingotekOAuthRequestVerifier.php
* Verify the request if it seemed to be signed. * *
LingotekOAuthServer::accessToken in lib/oauth-php/library/LingotekOAuthServer.php
* Exchange a request token for an access token. * The exchange is only succesful iff the request token has been authorized. * * Never returns, calls exit() when token is exchanged or when error is returned.

... See full list

File

lib/oauth-php/library/LingotekOAuthRequest.php, line 399

Class

LingotekOAuthRequest
Object to parse an incoming OAuth request or prepare an outgoing OAuth request

Code

function getParam($name, $urldecode = false) {
  if (isset($this->param[$name])) {
    $s = $this->param[$name];
  }
  else {
    if (isset($this->param[$this
      ->urlencode($name)])) {
      $s = $this->param[$this
        ->urlencode($name)];
    }
    else {
      $s = false;
    }
  }
  if (!empty($s) && $urldecode) {
    if (is_array($s)) {
      $s = array_map(array(
        $this,
        'urldecode',
      ), $s);
    }
    else {
      $s = $this
        ->urldecode($s);
    }
  }
  return $s;
}