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
IDENTIFIER
public
mixed
IDENTIFIER
= 'privacy-policy-mention-usage'
Methods
getDescription()
Get checklist description. Can be empty.
public
getDescription() : string
Return values
stringgetLink()
Get link so the checklist item can be resolved there. Can be empty.
public
getLink() : string
Return values
stringgetLinkTarget()
Get link target. Can be empty or "_blank", .
public
getLinkTarget() : string
..
Return values
stringgetLinkText()
Get link text. Can be empty.
public
getLinkText() : string
Return values
stringgetPluginConstantPrefix()
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
public
getPluginConstantPrefix() : string
Tags
Return values
stringgetTitle()
Get checklist title.
public
getTitle() : string
Return values
stringisChecked()
Is this checklist item checked?
public
isChecked() : bool
Return values
boolisVisible()
Should this be visible as checklist item?
public
isVisible() : bool
Return values
boolneedsPro()
Does this checklist item need PRO version of RCB?
public
needsPro() : bool
Return values
boolrecalculate()
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
boolgetFromOption()
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