interface UserAgreementRepositoryInterface (View source)

Persistence for the user agreement versions each user has accepted.

Methods

bool
hasUserAcceptedAgreement(int $userId, string $version)

No description

bool
recordAcceptance(int $userId, string $version, string $ipAddress, string $userAgent)

Stores the acceptance, or refreshes it when the user already accepted this version.

array
getUserAgreements(int $userId)

The user's acceptances, newest first.

Details

bool hasUserAcceptedAgreement(int $userId, string $version)

No description

Parameters

int $userId
string $version

Return Value

bool

bool recordAcceptance(int $userId, string $version, string $ipAddress, string $userAgent)

Stores the acceptance, or refreshes it when the user already accepted this version.

Parameters

int $userId
string $version
string $ipAddress
string $userAgent

Return Value

bool

array getUserAgreements(int $userId)

The user's acceptances, newest first.

Parameters

int $userId

Return Value

array