コード例 #1
0
 /**
  * Add device and user client data.
  *
  * @param array                      $aData
  * @param OxpsPaymorrowOxUser|oxUser $oUser
  *
  * @return array
  */
 protected function _addDeviceAndClientData(array $aData, oxUser $oUser)
 {
     $oSession = oxRegistry::getSession();
     $sSessionId = $oSession->getId();
     $aData['device_checkId'] = $sSessionId;
     $aData['client_browser_session_id'] = $sSessionId;
     $aData['client_cookies_id'] = $sSessionId;
     $aData['client_ipAddress'] = $oUser->getUserPaymorrowIpAddress();
     $aData['client_browser_header'] = $this->_getBrowserHeaders();
     return $aData;
 }