\DevOwl\RealCookieBanner\scannerPersist

Persist multiple `ScanEntry`'s from the `Scanner` results to the database.

It also provides functionality to avoid duplicate found presets (e.g. MonsterInsights over Google Analytics), and deduplicate coexisting presets (e.g. CF7 with reCaptcha over Google reCaptcha).

Summary

Methods
Properties
Constants
getPluginConstantPrefix()
__construct()
persist()
getEntries()
new_version_installation_after_2_15_0()
No public properties found
TABLE_NAME
TABLE_NAME_MARKUP
DECLARATION_OVERWRITE_FIELDS
No protected methods found
No protected properties found
N/A
No private methods found
$entries
N/A

Constants

TABLE_NAME

TABLE_NAME ='scan'

TABLE_NAME_MARKUP

TABLE_NAME_MARKUP ='scan_markup'

DECLARATION_OVERWRITE_FIELDS

DECLARATION_OVERWRITE_FIELDS =array('post_id', 'markup_hash')

Fields which should be updated via `ON DUPLICATE KEY UPDATE`.

Properties

$entries

$entries :

Type

Methods

getPluginConstantPrefix()

getPluginConstantPrefix(): string

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

Returns

string

persist()

persist()

Insert entries to database.

getEntries()

getEntries()

Get the persistable entries.

new_version_installation_after_2_15_0()

new_version_installation_after_2_15_0(string|false  $installed)

Move all found markups to the respective new database table and drop the known markup column.

Parameters

string|false $installed