ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
OAuthToken Class Reference

OAuth PECL extension includes an OAuth Exception class, so we need to wrap the definition of this class in order to avoid a PHP error. More...

+ Collaboration diagram for OAuthToken:

Public Member Functions

 __construct ($key, $secret)
 key = the token secret = the token secret More...
 
 to_string ()
 generates the basic string serialization of a token that a server would respond to request_token and access_token calls with More...
 
 __toString ()
 

Data Fields

 $key
 
 $secret
 

Detailed Description

OAuth PECL extension includes an OAuth Exception class, so we need to wrap the definition of this class in order to avoid a PHP error.

Definition at line 37 of file OAuth.php.

Constructor & Destructor Documentation

◆ __construct()

OAuthToken::__construct (   $key,
  $secret 
)

key = the token secret = the token secret

Definition at line 46 of file OAuth.php.

46 {
47 $this->key = $key;
48 $this->secret = $secret;
49 }

References $key, and $secret.

Member Function Documentation

◆ __toString()

OAuthToken::__toString ( )

Definition at line 63 of file OAuth.php.

63 {
64 return $this->to_string();
65 }
to_string()
generates the basic string serialization of a token that a server would respond to request_token and ...
Definition: OAuth.php:55

References to_string().

+ Here is the call graph for this function:

◆ to_string()

OAuthToken::to_string ( )

generates the basic string serialization of a token that a server would respond to request_token and access_token calls with

Definition at line 55 of file OAuth.php.

55 {
56 return "oauth_token=" .
58 "&oauth_token_secret=" .
59 OAuthUtil::urlencode_rfc3986($this->secret) .
60 "&oauth_callback_confirmed=true";
61 }
static urlencode_rfc3986($input)
Definition: OAuth.php:763

References OAuthUtil\urlencode_rfc3986().

Referenced by __toString().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $key

OAuthToken::$key

Definition at line 39 of file OAuth.php.

Referenced by __construct().

◆ $secret

OAuthToken::$secret

Definition at line 40 of file OAuth.php.

Referenced by __construct().


The documentation for this class was generated from the following file: