You are here

class OAuthSessionSESSION in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/oauth-php/library/session/OAuthSessionSESSION.php \OAuthSessionSESSION
  2. 7.2 lib/oauth-php/library/session/OAuthSessionSESSION.php \OAuthSessionSESSION
  3. 7.3 lib/oauth-php/library/session/OAuthSessionSESSION.php \OAuthSessionSESSION
  4. 7.4 lib/oauth-php/library/session/OAuthSessionSESSION.php \OAuthSessionSESSION
  5. 7.5 lib/oauth-php/library/session/OAuthSessionSESSION.php \OAuthSessionSESSION

Hierarchy

Expanded class hierarchy of OAuthSessionSESSION

File

lib/oauth-php/library/session/OAuthSessionSESSION.php, line 34

View source
class OAuthSessionSESSION extends OAuthSessionAbstract {
  public function __construct($options = array()) {
  }

  /**
   * Gets a variable value
   *
   * @param string $key
   * @return The value or null if not set.
   */
  public function get($key) {
    return @$_SESSION[$key];
  }

  /**
   * Sets a variable value
   *
   * @param string $key The key
   * @param any $data The data
   */
  public function set($key, $data) {
    $_SESSION[$key] = $data;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
OAuthSessionSESSION::get public function * Gets a variable value * * Overrides OAuthSessionAbstract::get
OAuthSessionSESSION::set public function * Sets a variable value * * Overrides OAuthSessionAbstract::set
OAuthSessionSESSION::__construct public function