AbstractTcf
extends BaseSettings
in package
AbstractYes
Abstract implementation of the settings for the TCF compatibility.
Table of Contents
Constants
- ALLOWED_SCOPE_OF_CONSENT = [self::SCOPE_OF_CONSENT_SERVICE]
- SCOPE_OF_CONSENT_SERVICE = 'service-specific'
Properties
Methods
- fourLetterLanguageCodeToTwoLetterCode() : mixed
- Sanitize a 4-letter language code to 2-letter language code as it is the only one which is currently supported by TCF.
- getGvl() : AbstractGvlPersistance
- Get GVL persistence class.
- getNextUpdateTime() : mixed
- Changes to the Global Vendor List are published weekly at 5:00 PM Central European Time on Thursdays.
- getScopeOfConsent() : string
- Get scope of consent.
- getSettings() : mixed
- Getter.
- getVendorConfigurations() : array<string|int, VendorConfiguration>
- Get the list of created TCF vendor configurations.
- isActive() : bool
- Check if compatibility is enabled.
- setSettings() : mixed
- Setter.
Constants
ALLOWED_SCOPE_OF_CONSENT
public
mixed
ALLOWED_SCOPE_OF_CONSENT
= [self::SCOPE_OF_CONSENT_SERVICE]
SCOPE_OF_CONSENT_SERVICE
public
mixed
SCOPE_OF_CONSENT_SERVICE
= 'service-specific'
Properties
$settings
See Settings
private
Settings
$settings
Methods
fourLetterLanguageCodeToTwoLetterCode()
Sanitize a 4-letter language code to 2-letter language code as it is the only one which is currently supported by TCF.
public
static fourLetterLanguageCodeToTwoLetterCode(string $language) : mixed
Parameters
- $language : string
getGvl()
Get GVL persistence class.
public
abstract getGvl() : AbstractGvlPersistance
Return values
AbstractGvlPersistancegetNextUpdateTime()
Changes to the Global Vendor List are published weekly at 5:00 PM Central European Time on Thursdays.
public
static getNextUpdateTime() : mixed
getScopeOfConsent()
Get scope of consent.
public
abstract getScopeOfConsent() : string
Return values
string —Can be service
getSettings()
Getter.
public
getSettings() : mixed
Tags
getVendorConfigurations()
Get the list of created TCF vendor configurations.
public
abstract getVendorConfigurations() : array<string|int, VendorConfiguration>
Return values
array<string|int, VendorConfiguration>isActive()
Check if compatibility is enabled.
public
abstract isActive() : bool
Return values
boolsetSettings()
Setter.
public
setSettings(Settings $settings) : mixed
Parameters
- $settings : Settings