\DevOwl\RealCookieBanner\view\checklistShortcode

A legal shortcode was genearted once or the legal links were added to a manu.

For backwards-compatibility this class is still named for "Shortcode" but it should be "Legal links" instead.

Summary

Methods
Properties
Constants
toggle()
isChecked()
getTitle()
getDescription()
getLink()
getLinkText()
getLinkTarget()
needsPro()
isVisible()
getPluginConstantPrefix()
No public properties found
OPT_PREFIX
IDENTIFIER
persistStateToOption()
getFromOption()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

OPT_PREFIX

OPT_PREFIX =RCB_OPT_PREFIX . '-checklist-'

IDENTIFIER

IDENTIFIER ='legal-shortcodes'

Methods

toggle()

toggle(boolean  $state): boolean

Set state of checklist item.

Parameters

boolean $state

Returns

boolean

isChecked()

isChecked(): boolean

Is this checklist item checked?

Returns

boolean

getTitle()

getTitle(): string

Get checklist title.

Returns

string

getDescription()

getDescription(): string

Get checklist description. Can be empty.

Returns

string

getLink()

getLink(): string

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

Returns

string

getLinkText()

getLinkText(): string

Get link text. Can be empty.

Returns

string

getLinkTarget()

getLinkTarget(): string

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

..

Returns

string

needsPro()

needsPro(): boolean

Does this checklist item need PRO version of RCB?

Returns

boolean

isVisible()

isVisible(): boolean

Should this be visible as checklist item?

Returns

boolean

getPluginConstantPrefix()

getPluginConstantPrefix(): string

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

Returns

string

persistStateToOption()

persistStateToOption(string  $id,boolean  $state)

Persist the state from `wp_options`.

Parameters

string $id
boolean $state

getFromOption()

getFromOption(string  $id,boolean  $allowNotAutoloaded = false): boolean

Get the state from `wp_options`.

Parameters

string $id
boolean $allowNotAutoloaded

Returns

boolean