function OAuthRequestVerifier::__construct in Lingotek Translation 7.3
Same name and namespace in other branches
- 7.2 lib/oauth-php/library/OAuthRequestVerifier.php \OAuthRequestVerifier::__construct()
* Construct the request to be verified * *
Parameters
string request: * @param string method * @param array params The request parameters
Overrides OAuthRequest::__construct
1 call to OAuthRequestVerifier::__construct()
- OAuthServer::__construct in lib/
oauth-php/ library/ OAuthServer.php - * Construct the request to be verified * *
1 method overrides OAuthRequestVerifier::__construct()
- OAuthServer::__construct in lib/
oauth-php/ library/ OAuthServer.php - * Construct the request to be verified * *
File
- lib/
oauth-php/ library/ OAuthRequestVerifier.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);
OAuthRequestLogger::start($this);
}