| [ Index ] | PHP Cross Reference of phpBB-3.1.12-deutsch | 
[Source view] [Print] [Project Stats]
This file is part of the phpBB Forum Software package.
| Copyright: | (c) phpBB Limited | 
| License: | GNU General Public License, version 2 (GPL-2.0) | 
| File Size: | 364 lines (9 kb) | 
| Included or required: | 0 times | 
| Referenced: | 0 times | 
| Includes or requires: | 0 files | 
token_storage:: (15 methods):
  __construct()
  retrieveAccessToken()
  storeAccessToken()
  hasAccessToken()
  clearToken()
  clearAllTokens()
  set_user_id()
  has_access_token_by_session()
  _has_acess_token()
  retrieve_access_token_by_session()
  _retrieve_access_token()
  get_access_token_row()
  json_encode_token()
  json_decode_token()
  get_service_name_for_db()
Class: token_storage - X-Ref
OAuth storage wrapper for phpbb's cache| __construct(\phpbb\db\driver\driver_interface $db, \phpbb\user $user, $auth_provider_oauth_table) X-Ref | 
| Creates token storage for phpBB. param: \phpbb\db\driver\driver_interface $db param: \phpbb\user $user param: string $auth_provider_oauth_table | 
| retrieveAccessToken($service) X-Ref | 
| {@inheritdoc} | 
| storeAccessToken($service, TokenInterface $token) X-Ref | 
| {@inheritdoc} | 
| hasAccessToken($service) X-Ref | 
| {@inheritdoc} | 
| clearToken($service) X-Ref | 
| {@inheritdoc} | 
| clearAllTokens() X-Ref | 
| {@inheritdoc} | 
| set_user_id($user_id) X-Ref | 
| Updates the user_id field in the database assosciated with the token param: int $user_id | 
| has_access_token_by_session($service) X-Ref | 
| Checks to see if an access token exists solely by the session_id of the user param: string $service The name of the OAuth service return: bool true if they have token, false if they don't | 
| _has_acess_token($data) X-Ref | 
| A helper function that performs the query for has access token functions param: array $data return: bool | 
| retrieve_access_token_by_session($service) X-Ref | 
| No description | 
| _retrieve_access_token($data) X-Ref | 
| A helper function that performs the query for retrieve access token functions Also checks if the token is a valid token param: array $data return: mixed | 
| get_access_token_row($data) X-Ref | 
| A helper function that performs the query for retrieving an access token param: array $data return: mixed | 
| json_encode_token(TokenInterface $token) X-Ref | 
| No description | 
| json_decode_token($json) X-Ref | 
| No description | 
| get_service_name_for_db($service) X-Ref | 
| Returns the name of the service as it must be stored in the database. param: string $service The name of the OAuth service return: string The name of the OAuth service as it needs to be stored | 
| Generated: Thu Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |