Service
in package
A service.
Table of Contents
Properties
- $codeDynamics : array<string|int, mixed>
- List of code dynamics applied to the embed scripts.
- $codeOnPageLoad : string
- The HTML code on page load.
- $codeOptIn : string
- The HTML code on opt-in.
- $codeOptOut : string
- The HTML code on opt-out.
- $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?
- $deleteTechnicalDefinitionsAfterOptOut : bool
- Delete the technical definitions after opt-out.
- $executeCodeOptInWhenNoTagManagerConsentIsGiven : bool
- Execute the code on opt-in only when no tag manager consent is given.
- $executeCodeOptOutWhenNoTagManagerConsentIsGiven : bool
- Execute the code on opt-out only when no tag manager consent is given.
- $executePriority : int
- The execute priority for all the opt-in / opt-out code.
- $googleConsentModeConsentTypes : array<string|int, string>
- If Google Consent Mode is active the required consent types.
- $id : int
- The ID of the service when it got created in a stafeul way.
- $isEmbeddingOnlyExternalResources : bool
- Is the service embedding only external resources and no cookies?
- $isProviderCurrentWebsite : bool
- Is the current website the provider of the service?
- $legalBasis : string
- The legal basis of the service.
- $name : string
- Service name.
- $presetId : string
- The used preset ID from the service cloud.
- $provider : string
- Provider.
- $providerContact : ProviderContact
- Provider contact.
- $providerLegalNoticeUrl : string
- Provider legal notice URL.
- $providerPrivacyPolicyUrl : string
- Provider privacy policy URL.
- $purpose : string
- Service purpose.
- $tagManagerOptInEventName : string
- If tag manager handling is active the opt-in event name.
- $tagManagerOptOutEventName : string
- If tag manager handling is active the opt-out event name.
- $technicalDefinitions : array<string|int, TechnicalDefinitions>
- The technical definitions for the cookies used by the service.
- $uniqueName : string
- Unique name.
Methods
- applyDynamicsToHtml() : mixed
- Takes a HTML string and apply code dynamics to it.
- calculateUnsafeCountries() : array<string|int, string>
- Calculate unsafe countries from a given array of countries.
- fromJson() : self
- Generate a `Service` object from an array.
- getCodeDynamics() : mixed
- Getter.
- getCodeOnPageLoad() : mixed
- Getter.
- getCodeOptIn() : mixed
- Getter.
- getCodeOptOut() : mixed
- Getter.
- getDataProcessingInCountries() : mixed
- Getter.
- getDataProcessingInCountriesSpecialTreatments() : mixed
- Getter.
- getDeleteTechnicalDefinitionsAfterOptOut() : mixed
- Getter.
- getExecuteCodeOptInWhenNoTagManagerConsentIsGiven() : mixed
- Getter.
- getExecuteCodeOptOutWhenNoTagManagerConsentIsGiven() : mixed
- Getter.
- getExecutePriority() : mixed
- Getter.
- getGoogleConsentModeConsentTypes() : mixed
- Getter.
- getId() : mixed
- Getter.
- getLegalBasis() : mixed
- Getter.
- getName() : mixed
- Getter.
- getPresetId() : mixed
- Getter.
- getProvider() : mixed
- Getter.
- getProviderContact() : mixed
- Getter.
- getProviderLegalNoticeUrl() : mixed
- Getter.
- getProviderPrivacyPolicyUrl() : mixed
- Getter.
- getPurpose() : mixed
- Getter.
- getTagManagerOptInEventName() : mixed
- Getter.
- getTagManagerOptOutEventName() : mixed
- Getter.
- getTechnicalDefinitions() : mixed
- Getter.
- getUniqueName() : mixed
- Getter.
- isEmbeddingOnlyExternalResources() : mixed
- Getter.
- isProviderCurrentWebsite() : mixed
- Getter.
- setCodeDynamics() : mixed
- Setter.
- setCodeOnPageLoad() : mixed
- Setter.
- setCodeOptIn() : mixed
- Setter.
- setCodeOptOut() : mixed
- Setter.
- setDataProcessingInCountries() : mixed
- Setter.
- setDataProcessingInCountriesSpecialTreatments() : mixed
- Setter.
- setDeleteTechnicalDefinitionsAfterOptOut() : mixed
- Setter.
- setExecuteCodeOptInWhenNoTagManagerConsentIsGiven() : mixed
- Setter.
- setExecuteCodeOptOutWhenNoTagManagerConsentIsGiven() : mixed
- Setter.
- setExecutePriority() : mixed
- Setter.
- setGoogleConsentModeConsentTypes() : mixed
- Setter.
- setId() : mixed
- Setter.
- setIsEmbeddingOnlyExternalResources() : mixed
- Setter.
- setIsProviderCurrentWebsite() : mixed
- Setter.
- setLegalBasis() : mixed
- Setter.
- setName() : mixed
- Setter.
- setPresetId() : mixed
- Setter.
- setProvider() : mixed
- Setter.
- setProviderContact() : mixed
- Setter.
- setProviderLegalNoticeUrl() : mixed
- Setter.
- setProviderPrivacyPolicyUrl() : mixed
- Setter.
- setPurpose() : mixed
- Setter.
- setTagManagerOptInEventName() : mixed
- Setter.
- setTagManagerOptOutEventName() : mixed
- Setter.
- setTechnicalDefinitions() : mixed
- Setter.
- setUniqueName() : mixed
- Setter.
- toJson() : mixed
- Create a JSON representation of this object.
Properties
$codeDynamics
List of code dynamics applied to the embed scripts.
private
array<string|int, mixed>
$codeDynamics
= []
$codeOnPageLoad
The HTML code on page load.
private
string
$codeOnPageLoad
= ''
$codeOptIn
The HTML code on opt-in.
private
string
$codeOptIn
= ''
$codeOptOut
The HTML code on opt-out.
private
string
$codeOptOut
$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
= []
$deleteTechnicalDefinitionsAfterOptOut
Delete the technical definitions after opt-out.
private
bool
$deleteTechnicalDefinitionsAfterOptOut
= false
$executeCodeOptInWhenNoTagManagerConsentIsGiven
Execute the code on opt-in only when no tag manager consent is given.
private
bool
$executeCodeOptInWhenNoTagManagerConsentIsGiven
= false
$executeCodeOptOutWhenNoTagManagerConsentIsGiven
Execute the code on opt-out only when no tag manager consent is given.
private
bool
$executeCodeOptOutWhenNoTagManagerConsentIsGiven
= false
$executePriority
The execute priority for all the opt-in / opt-out code.
private
int
$executePriority
= \DevOwl\ServiceCloudConsumer\templates\ServiceTemplate::EXECUTE_PRIORITY_DEFAULT
$googleConsentModeConsentTypes
If Google Consent Mode is active the required consent types.
private
array<string|int, string>
$googleConsentModeConsentTypes
= []
$id
The ID of the service when it got created in a stafeul way.
private
int
$id
= 0
$isEmbeddingOnlyExternalResources
Is the service embedding only external resources and no cookies?
private
bool
$isEmbeddingOnlyExternalResources
= false
$isProviderCurrentWebsite
Is the current website the provider of the service?
private
bool
$isProviderCurrentWebsite
= false
$legalBasis
The legal basis of the service.
private
string
$legalBasis
= \DevOwl\ServiceCloudConsumer\templates\ServiceTemplate::LEGAL_BASIS_CONSENT
$name
Service name.
private
string
$name
= ''
$presetId
The used preset ID from the service cloud.
private
string
$presetId
= ''
$provider
Provider.
private
string
$provider
= ''
$providerContact
Provider contact.
private
ProviderContact
$providerContact
$providerLegalNoticeUrl
Provider legal notice URL.
private
string
$providerLegalNoticeUrl
= ''
$providerPrivacyPolicyUrl
Provider privacy policy URL.
private
string
$providerPrivacyPolicyUrl
= ''
$purpose
Service purpose.
private
string
$purpose
= ''
$tagManagerOptInEventName
If tag manager handling is active the opt-in event name.
private
string
$tagManagerOptInEventName
= ''
$tagManagerOptOutEventName
If tag manager handling is active the opt-out event name.
private
string
$tagManagerOptOutEventName
= ''
$technicalDefinitions
The technical definitions for the cookies used by the service.
private
array<string|int, TechnicalDefinitions>
$technicalDefinitions
= []
$uniqueName
Unique name.
private
string
$uniqueName
= ''
Methods
applyDynamicsToHtml()
Takes a HTML string and apply code dynamics to it.
public
applyDynamicsToHtml(string $html) : mixed
Parameters
- $html : string
calculateUnsafeCountries()
Calculate unsafe countries from a given array of countries.
public
static calculateUnsafeCountries(array<string|int, string> $countries[, mixed $specialTreatments = [] ]) : array<string|int, string>
See also frontend-packages/react-cookie-banner/src/components/common/groups/cookiePropertyList.tsx
the
calculateUnsafeCountries
method.
Parameters
- $countries : array<string|int, string>
- $specialTreatments : mixed = []
Return values
array<string|int, string>fromJson()
Generate a `Service` object from an array.
public
static fromJson(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfgetCodeDynamics()
Getter.
public
getCodeDynamics() : mixed
Tags
getCodeOnPageLoad()
Getter.
public
getCodeOnPageLoad() : mixed
Tags
getCodeOptIn()
Getter.
public
getCodeOptIn() : mixed
Tags
getCodeOptOut()
Getter.
public
getCodeOptOut() : mixed
Tags
getDataProcessingInCountries()
Getter.
public
getDataProcessingInCountries() : mixed
Tags
getDataProcessingInCountriesSpecialTreatments()
Getter.
public
getDataProcessingInCountriesSpecialTreatments() : mixed
Tags
getDeleteTechnicalDefinitionsAfterOptOut()
Getter.
public
getDeleteTechnicalDefinitionsAfterOptOut() : mixed
Tags
getExecuteCodeOptInWhenNoTagManagerConsentIsGiven()
Getter.
public
getExecuteCodeOptInWhenNoTagManagerConsentIsGiven() : mixed
Tags
getExecuteCodeOptOutWhenNoTagManagerConsentIsGiven()
Getter.
public
getExecuteCodeOptOutWhenNoTagManagerConsentIsGiven() : mixed
Tags
getExecutePriority()
Getter.
public
getExecutePriority() : mixed
Tags
getGoogleConsentModeConsentTypes()
Getter.
public
getGoogleConsentModeConsentTypes() : mixed
Tags
getId()
Getter.
public
getId() : mixed
Tags
getLegalBasis()
Getter.
public
getLegalBasis() : mixed
Tags
getName()
Getter.
public
getName() : mixed
Tags
getPresetId()
Getter.
public
getPresetId() : mixed
Tags
getProvider()
Getter.
public
getProvider() : mixed
Tags
getProviderContact()
Getter.
public
getProviderContact() : mixed
Tags
getProviderLegalNoticeUrl()
Getter.
public
getProviderLegalNoticeUrl() : mixed
Tags
getProviderPrivacyPolicyUrl()
Getter.
public
getProviderPrivacyPolicyUrl() : mixed
Tags
getPurpose()
Getter.
public
getPurpose() : mixed
Tags
getTagManagerOptInEventName()
Getter.
public
getTagManagerOptInEventName() : mixed
Tags
getTagManagerOptOutEventName()
Getter.
public
getTagManagerOptOutEventName() : mixed
Tags
getTechnicalDefinitions()
Getter.
public
getTechnicalDefinitions() : mixed
Tags
getUniqueName()
Getter.
public
getUniqueName() : mixed
Tags
isEmbeddingOnlyExternalResources()
Getter.
public
isEmbeddingOnlyExternalResources() : mixed
Tags
isProviderCurrentWebsite()
Getter.
public
isProviderCurrentWebsite() : mixed
Tags
setCodeDynamics()
Setter.
public
setCodeDynamics(array<string|int, mixed> $codeDynamics) : mixed
Parameters
- $codeDynamics : array<string|int, mixed>
Tags
setCodeOnPageLoad()
Setter.
public
setCodeOnPageLoad(string $codeOnPageLoad) : mixed
Parameters
- $codeOnPageLoad : string
Tags
setCodeOptIn()
Setter.
public
setCodeOptIn(string $codeOptIn) : mixed
Parameters
- $codeOptIn : string
Tags
setCodeOptOut()
Setter.
public
setCodeOptOut(string $codeOptOut) : mixed
Parameters
- $codeOptOut : string
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, string> $dataProcessingInCountriesSpecialTreatments) : mixed
Parameters
- $dataProcessingInCountriesSpecialTreatments : array<string|int, string>
Tags
setDeleteTechnicalDefinitionsAfterOptOut()
Setter.
public
setDeleteTechnicalDefinitionsAfterOptOut(bool $deleteTechnicalDefinitionsAfterOptOut) : mixed
Parameters
- $deleteTechnicalDefinitionsAfterOptOut : bool
Tags
setExecuteCodeOptInWhenNoTagManagerConsentIsGiven()
Setter.
public
setExecuteCodeOptInWhenNoTagManagerConsentIsGiven(bool $executeCodeOptInWhenNoTagManagerConsentIsGiven) : mixed
Parameters
- $executeCodeOptInWhenNoTagManagerConsentIsGiven : bool
Tags
setExecuteCodeOptOutWhenNoTagManagerConsentIsGiven()
Setter.
public
setExecuteCodeOptOutWhenNoTagManagerConsentIsGiven(bool $executeCodeOptOutWhenNoTagManagerConsentIsGiven) : mixed
Parameters
- $executeCodeOptOutWhenNoTagManagerConsentIsGiven : bool
Tags
setExecutePriority()
Setter.
public
setExecutePriority(int $executePriority) : mixed
Parameters
- $executePriority : int
Tags
setGoogleConsentModeConsentTypes()
Setter.
public
setGoogleConsentModeConsentTypes(array<string|int, string> $googleConsentModeConsentTypes) : mixed
Parameters
- $googleConsentModeConsentTypes : array<string|int, string>
Tags
setId()
Setter.
public
setId(int $id) : mixed
Parameters
- $id : int
Tags
setIsEmbeddingOnlyExternalResources()
Setter.
public
setIsEmbeddingOnlyExternalResources(bool $isEmbeddingOnlyExternalResources) : mixed
Parameters
- $isEmbeddingOnlyExternalResources : bool
Tags
setIsProviderCurrentWebsite()
Setter.
public
setIsProviderCurrentWebsite(bool $isProviderCurrentWebsite) : mixed
Parameters
- $isProviderCurrentWebsite : bool
Tags
setLegalBasis()
Setter.
public
setLegalBasis(string $legalBasis) : mixed
Parameters
- $legalBasis : string
Tags
setName()
Setter.
public
setName(string $name) : mixed
Parameters
- $name : string
Tags
setPresetId()
Setter.
public
setPresetId(string $presetId) : mixed
Parameters
- $presetId : string
Tags
setProvider()
Setter.
public
setProvider(string $provider) : mixed
Parameters
- $provider : string
Tags
setProviderContact()
Setter.
public
setProviderContact(ProviderContact $providerContact) : mixed
Parameters
- $providerContact : ProviderContact
Tags
setProviderLegalNoticeUrl()
Setter.
public
setProviderLegalNoticeUrl(string $providerLegalNoticeUrl) : mixed
Parameters
- $providerLegalNoticeUrl : string
Tags
setProviderPrivacyPolicyUrl()
Setter.
public
setProviderPrivacyPolicyUrl(string $providerPrivacyPolicyUrl) : mixed
Parameters
- $providerPrivacyPolicyUrl : string
Tags
setPurpose()
Setter.
public
setPurpose(string $purpose) : mixed
Parameters
- $purpose : string
Tags
setTagManagerOptInEventName()
Setter.
public
setTagManagerOptInEventName(string $tagManagerOptInEventName) : mixed
Parameters
- $tagManagerOptInEventName : string
Tags
setTagManagerOptOutEventName()
Setter.
public
setTagManagerOptOutEventName(string $tagManagerOptOutEventName) : mixed
Parameters
- $tagManagerOptOutEventName : string
Tags
setTechnicalDefinitions()
Setter.
public
setTechnicalDefinitions(array<string|int, TechnicalDefinitions> $technicalDefinitions) : mixed
Parameters
- $technicalDefinitions : array<string|int, TechnicalDefinitions>
Tags
setUniqueName()
Setter.
public
setUniqueName(string $uniqueName) : mixed
Parameters
- $uniqueName : string
Tags
toJson()
Create a JSON representation of this object.
public
toJson() : mixed