VendorConfiguration
in package
A TCF vendor configuration.
Table of Contents
Properties
- $dataProcessingInCountries : array<string|int, string>
- Iso 3166-1 alpha 2 countries in which the service is processing data.
- $dataProcessingInCountriesSpecialTreatments : array<string|int, string>
- Are there special treatments when processing data in unsafe countries?
- $id : int
- The ID of the content blocker when it got created in a stafeul way.
- $restrictivePurposes : array<string|int, mixed>
- Restrictive purposes settings.
- $usedDeclarations : array<string|int, mixed>
- An array of used declarations (purposes, special purposes, ...) so the best suitable stacks can be calculated from that result.
- $vendor : array<string|int, mixed>
- The vendor object from the GVL.
- $vendorId : int
- The vendor ID from the official GVL vendor list.
Methods
- applyRestrictivePurposes() : mixed
- "Correct" the restrictive purposes (e.g. `global` scope does not allow configurations) of a TCF vendor configuration. It fills `$used` with used declarations.
- fromJson() : self
- Generate a `VendorConfiguration` object from an array.
- getDataProcessingInCountries() : mixed
- Getter.
- getDataProcessingInCountriesSpecialTreatments() : mixed
- Getter.
- getId() : mixed
- Getter.
- getRestrictivePurposes() : mixed
- Getter.
- getUsedDeclarations() : mixed
- Getter.
- getVendor() : mixed
- Getter.
- getVendorId() : mixed
- Getter.
- setDataProcessingInCountries() : mixed
- Setter.
- setDataProcessingInCountriesSpecialTreatments() : mixed
- Setter.
- setId() : mixed
- Setter.
- setRestrictivePurposes() : mixed
- Setter.
- setVendor() : mixed
- Setter.
- setVendorId() : mixed
- Setter.
- toJson() : mixed
- Create a JSON representation of this object.
Properties
$dataProcessingInCountries
Iso 3166-1 alpha 2 countries in which the service is processing data.
private
array<string|int, string>
$dataProcessingInCountries
= []
$dataProcessingInCountriesSpecialTreatments
Are there special treatments when processing data in unsafe countries?
private
array<string|int, string>
$dataProcessingInCountriesSpecialTreatments
= []
$id
The ID of the content blocker when it got created in a stafeul way.
private
int
$id
= 0
$restrictivePurposes
Restrictive purposes settings.
private
array<string|int, mixed>
$restrictivePurposes
= []
$usedDeclarations
An array of used declarations (purposes, special purposes, ...) so the best suitable stacks can be calculated from that result.
private
array<string|int, mixed>
$usedDeclarations
= [\DevOwl\CookieConsentManagement\tcf\StackCalculator::DECLARATION_TYPE_PURPOSES => [], \DevOwl\CookieConsentManagement\tcf\StackCalculator::DECLARATION_TYPE_SPECIAL_PURPOSES => [], \DevOwl\CookieConsentManagement\tcf\StackCalculator::DECLARATION_TYPE_FEATURES => [], \DevOwl\CookieConsentManagement\tcf\StackCalculator::DECLARATION_TYPE_SPECIAL_FEATURES => [], \DevOwl\CookieConsentManagement\tcf\StackCalculator::DECLARATION_TYPE_DATA_CATEGORIES => []]
$vendor
The vendor object from the GVL.
private
array<string|int, mixed>
$vendor
$vendorId
The vendor ID from the official GVL vendor list.
private
int
$vendorId
= 0
Methods
applyRestrictivePurposes()
"Correct" the restrictive purposes (e.g. `global` scope does not allow configurations) of a TCF vendor configuration. It fills `$used` with used declarations.
public
applyRestrictivePurposes(string $scope) : mixed
Parameters
- $scope : string
-
Can be
global
orservice-specific
fromJson()
Generate a `VendorConfiguration` object from an array.
public
static fromJson(array<string|int, mixed> $data, array<string|int, mixed> $vendor) : self
Parameters
- $data : array<string|int, mixed>
- $vendor : array<string|int, mixed>
-
The used vendor object for this vendor configuration
Return values
selfgetDataProcessingInCountries()
Getter.
public
getDataProcessingInCountries() : mixed
Tags
getDataProcessingInCountriesSpecialTreatments()
Getter.
public
getDataProcessingInCountriesSpecialTreatments() : mixed
Tags
getId()
Getter.
public
getId() : mixed
Tags
getRestrictivePurposes()
Getter.
public
getRestrictivePurposes() : mixed
Tags
getUsedDeclarations()
Getter.
public
getUsedDeclarations() : mixed
Tags
getVendor()
Getter.
public
getVendor() : mixed
Tags
getVendorId()
Getter.
public
getVendorId() : mixed
Tags
setDataProcessingInCountries()
Setter.
public
setDataProcessingInCountries(array<string|int, string> $dataProcessingInCountries) : mixed
Parameters
- $dataProcessingInCountries : array<string|int, string>
Tags
setDataProcessingInCountriesSpecialTreatments()
Setter.
public
setDataProcessingInCountriesSpecialTreatments(array<string|int, mixed> $dataProcessingInCountriesSpecialTreatments) : mixed
Parameters
- $dataProcessingInCountriesSpecialTreatments : array<string|int, mixed>
Tags
setId()
Setter.
public
setId(int $id) : mixed
Parameters
- $id : int
Tags
setRestrictivePurposes()
Setter.
public
setRestrictivePurposes(RestrictivePurposes $restrictivePurposes) : mixed
Parameters
- $restrictivePurposes : RestrictivePurposes
Tags
setVendor()
Setter.
public
setVendor(array<string|int, mixed> $vendor) : mixed
Parameters
- $vendor : array<string|int, mixed>
Tags
setVendorId()
Setter.
public
setVendorId(int $vendorId) : mixed
Parameters
- $vendorId : int
Tags
toJson()
Create a JSON representation of this object.
public
toJson() : mixed