Documentation

MyConsent
in package
Uses UtilsProvider

Handle consents of "me".

Table of Contents

Properties

$me  : MyConsent
Singleton instance.

Methods

getCurrentHistory()  : mixed
Get the history of the current user.
getCurrentUser()  : mixed
Get's the current user from the cookie.
getInstance()  : mixed
Get singleton instance.
getPluginConstantPrefix()  : string
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
persist()  : mixed
Persist an user consent to the database.
persistDecisions()  : mixed
Persist a list of decisions. This could be used for example to persist the decisions of a Real Cookie Banner decision or Google Consent Mode decision.
persistIps()  : mixed
Persist the IPs of the current user.
persistTcfStrings()  : mixed
Persist a list of TCF strings.
persistUrls()  : mixed
Persist a list of URLs.
__construct()  : mixed
C'tor.

Properties

Methods

getCurrentHistory()

Get the history of the current user.

public getCurrentHistory() : mixed

getCurrentUser()

Get's the current user from the cookie.

public getCurrentUser() : mixed

getInstance()

Get singleton instance.

public static getInstance() : mixed
Tags
codeCoverageIgnore

getPluginConstantPrefix()

Get the prefix of this plugin so composer packages can dynamically build other constant values on it.

public getPluginConstantPrefix() : string
Tags
codeCoverageIgnore

It only returns a string with the constant prefix

Return values
string

persist()

Persist an user consent to the database.

public persist(Transaction $transaction[, bool $dummy = false ]) : mixed
Parameters
$transaction : Transaction
$dummy : bool = false

If true, no data will saved in database

persistDecisions()

Persist a list of decisions. This could be used for example to persist the decisions of a Real Cookie Banner decision or Google Consent Mode decision.

protected persistDecisions(array<string|int, mixed> $decisions) : mixed
Parameters
$decisions : array<string|int, mixed>

persistIps()

Persist the IPs of the current user.

protected persistIps(array<string|int, mixed> $ips) : mixed
Parameters
$ips : array<string|int, mixed>

persistTcfStrings()

Persist a list of TCF strings.

protected persistTcfStrings(array<string|int, string> $tcfStrings) : mixed
Parameters
$tcfStrings : array<string|int, string>

persistUrls()

Persist a list of URLs.

protected persistUrls(array<string|int, string> $urls) : mixed
Parameters
$urls : array<string|int, string>

__construct()

C'tor.

private __construct() : mixed

        
On this page

Search results