TABLE_NAME
TABLE_NAME ='tcf'
Persist an array of `vendor-list.json` to the database.
VENDOR_OVERWRITE_FIELDS =array('name', 'purposes', 'legIntPurposes', 'flexiblePurposes', 'specialPurposes', 'features', 'specialFeatures', 'policyUrl', 'usesCookies', 'cookieMaxAgeSeconds', 'cookieRefresh', 'usesNonCookieAccess', 'deviceStorageDisclosureUrl', 'deviceStorageDisclosureViolation', 'deviceStorageDisclosure', 'additionalInformation')
$normalizer :\DevOwl\TcfVendorListNormalize\TcfVendorListNormalizer
The normalizer.
__construct(\DevOwl\TcfVendorListNormalize\TcfVendorListNormalizer $normalizer)
C'tor.
\DevOwl\TcfVendorListNormalize\TcfVendorListNormalizer | $normalizer |
normalizeDeclarations(string $language,array $vendorList,array $translation)
Parse `vendor-list.json`, normalize purposes and features and push it up to the database.
This function does not persist vendors!
string | $language | |
array | $vendorList | Passed as reference to avoid memory leaks |
array | $translation | Passed as reference to avoid memory leaks |
normalizeStacks(string $language,array $vendorList,array $translation)
Parse `vendor-list.json`, normalize stacks and push it up to the database.
string | $language | |
array | $vendorList | Passed as reference to avoid memory leaks |
array | $translation | Passed as reference to avoid memory leaks |