function LingotekOAuthRequestVerifier::__construct in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lib/oauth-php/library/LingotekOAuthRequestVerifier.php \LingotekOAuthRequestVerifier::__construct()
- 7.4 lib/oauth-php/library/LingotekOAuthRequestVerifier.php \LingotekOAuthRequestVerifier::__construct()
- 7.5 lib/oauth-php/library/LingotekOAuthRequestVerifier.php \LingotekOAuthRequestVerifier::__construct()
* Construct the request to be verified * *
Parameters
string request: * @param string method * @param array params The request parameters
Overrides LingotekOAuthRequest::__construct
1 call to LingotekOAuthRequestVerifier::__construct()
- LingotekOAuthServer::__construct in lib/
oauth-php/ library/ LingotekOAuthServer.php - * Construct the request to be verified * *
1 method overrides LingotekOAuthRequestVerifier::__construct()
- LingotekOAuthServer::__construct in lib/
oauth-php/ library/ LingotekOAuthServer.php - * Construct the request to be verified * *
File
- lib/
oauth-php/ library/ LingotekOAuthRequestVerifier.php, line 52
Class
Code
function __construct($uri = null, $method = null, $params = null) {
if ($params) {
$encodedParams = array();
foreach ($params as $key => $value) {
if (preg_match("/^oauth_/", $key)) {
continue;
}
$encodedParams[rawurlencode($key)] = rawurlencode($value);
}
$this->param = array_merge($this->param, $encodedParams);
}
$this->store = OAuthStore::instance();
parent::__construct($uri, $method);
LingotekOAuthRequestLogger::start($this);
}