You are here

public function OAuthStoreSession::getServer in Lingotek Translation 7.3

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

Overrides OAuthStoreAbstract::getServer

File

lib/oauth-php/library/store/OAuthStoreSession.php, line 100

Class

OAuthStoreSession

Code

public function getServer($consumer_key, $user_id, $user_is_admin = false) {
  return array(
    'id' => 0,
    'user_id' => $user_id,
    'consumer_key' => $this->session['consumer_key'],
    'consumer_secret' => $this->session['consumer_secret'],
    'signature_methods' => $this->session['signature_methods'],
    'server_uri' => $this->session['server_uri'],
    'request_token_uri' => $this->session['request_token_uri'],
    'authorize_uri' => $this->session['authorize_uri'],
    'access_token_uri' => $this->session['access_token_uri'],
  );
}