\DevOwl\RealCookieBanner\importImportGroups

Trait to handle the importer for groups in the `Import` class.

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
doImportCookieGroups()
handleGroupUpdate()
handleGroupCreate()
handleCorruptGroup()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

doImportCookieGroups()

doImportCookieGroups(array  $groups)

Import cookie groups from JSON.

Parameters

array $groups

handleGroupUpdate()

handleGroupUpdate(string  $slug,integer  $term_id,string  $name,string  $description)

Handle to update an existing group instead of creating a new one.

Parameters

string $slug
integer $term_id
string $name
string $description

handleGroupCreate()

handleGroupCreate(string  $slug,string  $name,string  $description,integer  $order)

Handle to create a new group.

Parameters

string $slug
string $name
string $description
integer $order

handleCorruptGroup()

handleCorruptGroup(array  $group,integer  $index)

Check missing meta of passed group.

Parameters

array $group
integer $index