MyConsent
in package
Uses
UtilsProvider
Handle consents of "me".
Table of Contents
Properties
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
$me
Singleton instance.
private
static MyConsent
$me
= null
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
getPluginConstantPrefix()
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
public
getPluginConstantPrefix() : string
Tags
Return values
stringpersist()
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