\Dewdrop\ActivityLogUserInformation

Summary

Methods
Properties
Constants
__construct()
setCookieName()
setCookieTtl()
getId()
getIdFromSignedCookie()
writeSignedCookie()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
hmac()
cookieIsSet()
getCookieId()
getCookieHash()
$cookieName
$cookieTtl
$request
$geocoder
$dbGateway
N/A

Properties

$cookieName

$cookieName : string

Type

string

$cookieTtl

$cookieTtl : integer

Type

integer

$geocoder

$geocoder : \Geocoder\Provider\GeoIP2

Type

\Geocoder\Provider\GeoIP2

Methods

__construct()

__construct(\Dewdrop\ActivityLog\DbGateway  $dbGateway, \Dewdrop\Request  $request = null, \Geocoder\Provider\GeoIP2  $geocoder = null) 

UserInformation constructor.

Parameters

\Dewdrop\ActivityLog\DbGateway $dbGateway
\Dewdrop\Request $request
\Geocoder\Provider\GeoIP2 $geocoder

setCookieName()

setCookieName(string  $cookieName) : $this

Parameters

string $cookieName

Returns

$this

setCookieTtl()

setCookieTtl(integer  $cookieTtl) : $this

Parameters

integer $cookieTtl

Returns

$this

getId()

getId() : boolean|integer

Returns

boolean|integer

getIdFromSignedCookie()

getIdFromSignedCookie() : boolean|integer

Returns

boolean|integer

writeSignedCookie()

writeSignedCookie(  $id) 

Parameters

$id

hmac()

hmac(string  $content, string  $secretKey) : mixed

Parameters

string $content
string $secretKey

Returns

mixed

cookieIsSet()

cookieIsSet() : boolean

Returns

boolean

getCookieId()

getCookieId() : string

Returns

string

getCookieHash()

getCookieHash() : string

Returns

string