public function OAuthStore2Leg::__construct in Lingotek Translation 7.3
Same name and namespace in other branches
- 7.7 lib/oauth-php/library/store/OAuthStore2Leg.php \OAuthStore2Leg::__construct()
- 7.2 lib/oauth-php/library/store/OAuthStore2Leg.php \OAuthStore2Leg::__construct()
- 7.4 lib/oauth-php/library/store/OAuthStore2Leg.php \OAuthStore2Leg::__construct()
- 7.5 lib/oauth-php/library/store/OAuthStore2Leg.php \OAuthStore2Leg::__construct()
- 7.6 lib/oauth-php/library/store/OAuthStore2Leg.php \OAuthStore2Leg::__construct()
File
- lib/
oauth-php/ library/ store/ OAuthStore2Leg.php, line 45
Class
Code
public function __construct($options = array()) {
if (isset($options['consumer_key']) && isset($options['consumer_secret'])) {
$this->consumer_key = $options['consumer_key'];
$this->consumer_secret = $options['consumer_secret'];
}
else {
throw new OAuthException2("OAuthStore2Leg needs consumer_token and consumer_secret");
}
}