Documentation

PrivacyPolicyMentionUsage extends AbstractChecklistItem
in package

Mention Real Cookie Banner usage in privacy policy.

Table of Contents

Constants

IDENTIFIER  = 'privacy-policy-mention-usage'

Methods

getDescription()  : string
Get checklist description. Can be empty.
getLink()  : string
Get link so the checklist item can be resolved there. Can be empty.
getLinkTarget()  : string
Get link target. Can be empty or "_blank", .
getLinkText()  : string
Get link text. Can be empty.
getPluginConstantPrefix()  : string
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
getTitle()  : string
Get checklist title.
isChecked()  : bool
Is this checklist item checked?
isVisible()  : bool
Should this be visible as checklist item?
needsPro()  : bool
Does this checklist item need PRO version of RCB?
recalculate()  : mixed
Privacy policy got updated, let's update the checklist accordingly.
toggle()  : bool
Set state of checklist item.
getFromOption()  : mixed
Get the state from `wp_options`.
persistStateToOption()  : mixed
Persist the state from `wp_options`.

Constants

Methods

getDescription()

Get checklist description. Can be empty.

public getDescription() : string
Return values
string

Get link so the checklist item can be resolved there. Can be empty.

public getLink() : string
Return values
string

getLinkTarget()

Get link target. Can be empty or "_blank", .

public getLinkTarget() : string

..

Return values
string

getPluginConstantPrefix()

Get the prefix of this plugin so composer packages can dynamically build other constant values on it.

public getPluginConstantPrefix() : string
Tags
codeCoverageIgnore

It only returns a string with the constant prefix

Return values
string

isVisible()

Should this be visible as checklist item?

public isVisible() : bool
Return values
bool

needsPro()

Does this checklist item need PRO version of RCB?

public needsPro() : bool
Return values
bool

recalculate()

Privacy policy got updated, let's update the checklist accordingly.

public static recalculate(int $postId) : mixed
Parameters
$postId : int

toggle()

Set state of checklist item.

public toggle(mixed $state) : bool
Parameters
$state : mixed
Return values
bool

getFromOption()

Get the state from `wp_options`.

protected getFromOption(string $id) : mixed
Parameters
$id : string

persistStateToOption()

Persist the state from `wp_options`.

protected persistStateToOption(string $id, bool $state) : mixed
Parameters
$id : string
$state : bool

        
On this page

Search results