\DevOwl\TcfVendorListNormalizeQuery

Query the database for purposes, functions and vendors.

They are strictly typed to this format: https://git.io/JqfCq

Summary

Methods
Properties
Constants
__construct()
allDeclarations()
declaration()
stacks()
vendors()
vendor()
getLatestUsedVendorListVersion()
getLatestUsedPurposeVersions()
getCurrentLanguage()
hasDefectVendors()
getNormalizer()
No public properties found
No constants found
castReadDeclaration()
castReadStacks()
castReadVendors()
No protected properties found
N/A
No private methods found
$normalizer
N/A

Properties

Methods

allDeclarations()

allDeclarations(array  $args = array())

Query all available declaration of the latest GVL and TCF policy version for the current language. If the language does not exist for the current TCF version, let's fallback to the default TCF version.

Additional arguments:

  • [onlyReturnDeclarations]: (boolean) Default to false, do not populate gvlSpecificationVersion, ...

Parameters

array $args

Additional arguments, see description of purposes

declaration()

declaration(string  $type,array  $args = array()): array

Query available declaration of the latest GVL and TCF policy version for the current language. If the language does not exist for the current TCF version, let's fallback to the default TCF version.

A declaration can be purpose, features, special features and special purposes.

Arguments:

  • [gvlSpecificationVersion]: (int) Default to latest
  • [tcfPolicyVersion]: (int) Default to latest
  • [language]: (string) Default to current

Parameters

string $type

See Persist::DECLARATION_TYPE_* constants.

array $args

Additional arguments, see description

Returns

array

stacks()

stacks(array  $args = array()): array

Query available stacks of the latest GVL and TCF policy version for the current language. If the language does not exist for the current TCF version, let's fallback to the default TCF version.

Arguments:

  • [gvlSpecificationVersion]: (int) Default to latest
  • [tcfPolicyVersion]: (int) Default to latest
  • [language]: (string) Default to current

Parameters

array $args

Additional arguments, see description

Returns

array

vendors()

vendors(array  $args = array()): array

Query all available vendors.

Arguments:

  • [in]: (int[]) Only read this vendors (WHERE IN)
  • [vendorListVersion]: (int) Default to latest

Parameters

array $args

Additional arguments, see description

Returns

array

vendor()

vendor(integer  $vendorId,array  $args = array()): array

Query a vendor.

Arguments:

  • [vendorListVersion]: (int) Default to latest

Parameters

integer $vendorId
array $args

Additional arguments, see description

Returns

array

getLatestUsedVendorListVersion()

getLatestUsedVendorListVersion(): integer

Get the latest used `vendorListVersion`

Returns

integer

getLatestUsedPurposeVersions()

getLatestUsedPurposeVersions(string  $type): array<mixed,integer>

Get the latest used `gvlSpecificationVersion` and `tcfPolicyVersion`.

Parameters

string $type

See Persist::DECLARATION_TYPE_* constants.

Returns

array<mixed,integer>

getCurrentLanguage()

getCurrentLanguage()

Get the current language which we need to query.

hasDefectVendors()

hasDefectVendors(array  $args = array())

Check if a vendor is corrupt. This can happen when:

  • deviceStorageDisclosureUrl is set, but deviceStorageDisclosure isn't

Arguments:

  • [in]: (int[]) Only read this vendors (WHERE IN)
  • [vendorListVersion]: (int) Default to latest

Parameters

array $args

Additional arguments, see description

getNormalizer()

getNormalizer()

Getter.

castReadDeclaration()

castReadDeclaration(array  $rows)

Cast the read purposes to valid scheme objects.

Parameters

array $rows

castReadStacks()

castReadStacks(array  $rows)

Cast the read stacks to valid scheme objects.

Parameters

array $rows

castReadVendors()

castReadVendors(array  $rows)

Cast the read vendors to valid scheme objects.

Parameters

array $rows