Documentation

ApkgNote
in package

FinalYes

Round-trippable representation of a single LWT term as an Anki note.

guid is the durable identity Anki uses to merge on import — we encode the LWT term id into it so a re-imported .apkg can find the original term.

Tags
phpstan-immutable

Table of Contents

Constants

GUID_PREFIX  : mixed = 'lwt-'

Properties

$lwtTermId  : int
$notes  : string
$romanization  : string
$suspended  : bool
$tags  : array<string|int, mixed>
$term  : string
$translation  : string

Methods

__construct()  : mixed
guid()  : string
lwtIdField()  : string
lwtIdFromGuid()  : int|null

Constants

GUID_PREFIX

public mixed GUID_PREFIX = 'lwt-'

Properties

$lwtTermId read-only

public int $lwtTermId

$romanization read-only

public string $romanization

$suspended read-only

public bool $suspended

$tags read-only

public array<string|int, mixed> $tags

$translation read-only

public string $translation

Methods

__construct()

public __construct(int $lwtTermId, string $term, string $translation, string $romanization, string $notes, array<int, string> $tags, bool $suspended) : mixed
Parameters
$lwtTermId : int
$term : string
$translation : string
$romanization : string
$notes : string
$tags : array<int, string>
$suspended : bool

guid()

public guid() : string
Return values
string

lwtIdField()

public lwtIdField() : string
Return values
string

lwtIdFromGuid()

public static lwtIdFromGuid(string $guid) : int|null
Parameters
$guid : string
Return values
int|null
On this page

Search results