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

__construct()

C'tor.

private __construct() : mixed

        
On this page

Search results