protected function LingotekOAuthRequest::transcodeParams in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.5 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::transcodeParams()
- 7.6 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::transcodeParams()
* Re-encode all parameters so that they are encoded using RFC3986. * Updates the $this->param attribute.
1 call to LingotekOAuthRequest::transcodeParams()
- LingotekOAuthRequest::__construct in lib/
oauth-php/ library/ LingotekOAuthRequest.php - * Construct from the current request. Useful for checking the signature of a request. * When not supplied with any parameters this will use the current request. * *
File
- lib/
oauth-php/ library/ LingotekOAuthRequest.php, line 462
Class
- LingotekOAuthRequest
- Object to parse an incoming OAuth request or prepare an outgoing OAuth request
Code
protected function transcodeParams() {
$params = $this->param;
$this->param = array();
foreach ($params as $name => $value) {
if (is_array($value)) {
$this->param[$this
->urltranscode($name)] = array_map(array(
$this,
'urltranscode',
), $value);
}
else {
$this->param[$this
->urltranscode($name)] = $this
->urltranscode($value);
}
}
}