UserAgreementRepositoryInterface
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
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.