ImportGroups
Trait to handle the importer for groups in the `Import` class.
Table of Contents
Methods
- doImportCookieGroups() : mixed
- Import cookie groups from JSON.
- handleCorruptGroup() : mixed
- Check missing meta of passed group.
- handleGroupCreate() : mixed
- Handle to create a new group.
- handleGroupUpdate() : mixed
- Handle to update an existing group instead of creating a new one.
Methods
doImportCookieGroups()
Import cookie groups from JSON.
protected
doImportCookieGroups(array<string|int, mixed> $groups) : mixed
Parameters
- $groups : array<string|int, mixed>
handleCorruptGroup()
Check missing meta of passed group.
protected
handleCorruptGroup(array<string|int, mixed> $group, int $index) : mixed
Parameters
- $group : array<string|int, mixed>
- $index : int
handleGroupCreate()
Handle to create a new group.
protected
handleGroupCreate(string $slug, string $name, string $description, int $order) : mixed
Parameters
- $slug : string
- $name : string
- $description : string
- $order : int
handleGroupUpdate()
Handle to update an existing group instead of creating a new one.
protected
handleGroupUpdate(string $slug, int $term_id, string $name, string $description) : mixed
Parameters
- $slug : string
- $term_id : int
- $name : string
- $description : string