You are here

public function OAuthStoreAnymeta::addLog in Lingotek Translation 7.6

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

* Add an entry to the log table * *

Parameters

array keys (osr_consumer_key, ost_token, ocr_consumer_key, oct_token): * @param string received * @param string sent * @param string base_string * @param string notes * @param int (optional) user_id

Overrides OAuthStoreSQL::addLog

File

lib/oauth-php/library/store/OAuthStoreAnyMeta.php, line 61

Class

OAuthStoreAnymeta

Code

public function addLog($keys, $received, $sent, $base_string, $notes, $user_id = null) {
  if (is_null($user_id) && isset($GLOBALS['any_auth'])) {
    $user_id = $GLOBALS['any_auth']
      ->getUserId();
  }
  parent::addLog($keys, $received, $sent, $base_string, $notes, $user_id);
}