You are here

public function OAuthStore2Leg::__construct in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/oauth-php/library/store/OAuthStore2Leg.php \OAuthStore2Leg::__construct()
  2. 7.2 lib/oauth-php/library/store/OAuthStore2Leg.php \OAuthStore2Leg::__construct()
  3. 7.3 lib/oauth-php/library/store/OAuthStore2Leg.php \OAuthStore2Leg::__construct()
  4. 7.4 lib/oauth-php/library/store/OAuthStore2Leg.php \OAuthStore2Leg::__construct()
  5. 7.5 lib/oauth-php/library/store/OAuthStore2Leg.php \OAuthStore2Leg::__construct()

File

lib/oauth-php/library/store/OAuthStore2Leg.php, line 45

Class

OAuthStore2Leg

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");
  }
}