Documentation

ImportCookies

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

Table of Contents

Methods

doImportCookies()  : mixed
Import cookies from JSON.
handleCookieAssign()  : mixed
Assign a created cookie to a given group.
handleCorruptCookie()  : mixed
Check missing meta of passed cookie.

Methods

doImportCookies()

Import cookies from JSON.

protected doImportCookies(array<string|int, mixed> $cookies) : mixed
Parameters
$cookies : array<string|int, mixed>

handleCookieAssign()

Assign a created cookie to a given group.

protected handleCookieAssign(int $postId, int $groupId) : mixed
Parameters
$postId : int
$groupId : int

handleCorruptCookie()

Check missing meta of passed cookie.

protected handleCorruptCookie(array<string|int, mixed> $cookie, int $index) : mixed
Parameters
$cookie : array<string|int, mixed>
$index : int

        
On this page

Search results