BannerLink
in package
Banner links configured in settings.
Table of Contents
Constants
- PAGE_TYPE_CANCELLATION_POLICY = 'cancellationPolicy'
- PAGE_TYPE_COOKIE_POLICY = 'cookiePolicy'
- PAGE_TYPE_DATA_PROCESSING_AGREEMENT = 'dpa'
- PAGE_TYPE_DISPUTE_RESOLUTION = 'disputeResolution'
- PAGE_TYPE_GENERAL_TERMS_AND_CONDITIONS = 'gtc'
- PAGE_TYPE_LEGAL_NOTICE = 'legalNotice'
- PAGE_TYPE_OTHER = 'other'
- PAGE_TYPE_PRIVACY_POLICY = 'privacyPolicy'
- PAGE_TYPE_TERMS_OF_USE = 'tos'
Properties
- $hideCookieBanner : bool
- Hide the cookie banner on that site?
- $id : int
- ID.
- $isExternalUrl : bool
- Is the URL external?
- $isTargetBlank : bool
- Open the link in a new window.
- $label : string
- Label.
- $pageId : int
- Page ID when the link is internal.
- $pageType : string
- Page type.
- $url : string
- URL.
Methods
- fromJson() : self
- Generate a `Blocker` object from an array.
- getId() : mixed
- Getter.
- getLabel() : mixed
- Getter.
- getPageId() : mixed
- Getter.
- getPageType() : mixed
- Getter.
- getUrl() : mixed
- Getter.
- isExternalUrl() : mixed
- Getter.
- isHideCookieBanner() : mixed
- Getter.
- isTargetBlank() : mixed
- Getter.
- setHideCookieBanner() : mixed
- Setter.
- setId() : mixed
- Setter.
- setIsExternalUrl() : mixed
- Setter.
- setIsTargetBlank() : mixed
- Setter.
- setLabel() : mixed
- Setter.
- setPageId() : mixed
- Setter.
- setPageType() : mixed
- Setter.
- setUrl() : mixed
- Setter.
- toJson() : mixed
- Create a JSON representation of this object.
Constants
PAGE_TYPE_CANCELLATION_POLICY
public
mixed
PAGE_TYPE_CANCELLATION_POLICY
= 'cancellationPolicy'
PAGE_TYPE_COOKIE_POLICY
public
mixed
PAGE_TYPE_COOKIE_POLICY
= 'cookiePolicy'
PAGE_TYPE_DATA_PROCESSING_AGREEMENT
public
mixed
PAGE_TYPE_DATA_PROCESSING_AGREEMENT
= 'dpa'
PAGE_TYPE_DISPUTE_RESOLUTION
public
mixed
PAGE_TYPE_DISPUTE_RESOLUTION
= 'disputeResolution'
PAGE_TYPE_GENERAL_TERMS_AND_CONDITIONS
public
mixed
PAGE_TYPE_GENERAL_TERMS_AND_CONDITIONS
= 'gtc'
PAGE_TYPE_LEGAL_NOTICE
public
mixed
PAGE_TYPE_LEGAL_NOTICE
= 'legalNotice'
PAGE_TYPE_OTHER
public
mixed
PAGE_TYPE_OTHER
= 'other'
PAGE_TYPE_PRIVACY_POLICY
public
mixed
PAGE_TYPE_PRIVACY_POLICY
= 'privacyPolicy'
PAGE_TYPE_TERMS_OF_USE
public
mixed
PAGE_TYPE_TERMS_OF_USE
= 'tos'
Properties
$hideCookieBanner
Hide the cookie banner on that site?
private
bool
$hideCookieBanner
= false
$id
ID.
private
int
$id
= 0
$isExternalUrl
Is the URL external?
private
bool
$isExternalUrl
= false
$isTargetBlank
Open the link in a new window.
private
bool
$isTargetBlank
= false
$label
Label.
private
string
$label
= ''
$pageId
Page ID when the link is internal.
private
int
$pageId
= 0
$pageType
Page type.
private
string
$pageType
= self::PAGE_TYPE_OTHER
$url
URL.
private
string
$url
= ''
Methods
fromJson()
Generate a `Blocker` object from an array.
public
static fromJson(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfgetId()
Getter.
public
getId() : mixed
Tags
getLabel()
Getter.
public
getLabel() : mixed
Tags
getPageId()
Getter.
public
getPageId() : mixed
Tags
getPageType()
Getter.
public
getPageType() : mixed
Tags
getUrl()
Getter.
public
getUrl() : mixed
Tags
isExternalUrl()
Getter.
public
isExternalUrl() : mixed
Tags
isHideCookieBanner()
Getter.
public
isHideCookieBanner() : mixed
Tags
isTargetBlank()
Getter.
public
isTargetBlank() : mixed
Tags
setHideCookieBanner()
Setter.
public
setHideCookieBanner(bool $hideCookieBanner) : mixed
Parameters
- $hideCookieBanner : bool
Tags
setId()
Setter.
public
setId(int $id) : mixed
Parameters
- $id : int
Tags
setIsExternalUrl()
Setter.
public
setIsExternalUrl(bool $isExternalUrl) : mixed
Parameters
- $isExternalUrl : bool
Tags
setIsTargetBlank()
Setter.
public
setIsTargetBlank(bool $isTargetBlank) : mixed
Parameters
- $isTargetBlank : bool
Tags
setLabel()
Setter.
public
setLabel(string $label) : mixed
Parameters
- $label : string
Tags
setPageId()
Setter.
public
setPageId(int $pageId) : mixed
Parameters
- $pageId : int
Tags
setPageType()
Setter.
public
setPageType(string $pageType) : mixed
Parameters
- $pageType : string
Tags
setUrl()
Setter.
public
setUrl(string $url) : mixed
Parameters
- $url : string
Tags
toJson()
Create a JSON representation of this object.
public
toJson() : mixed