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
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
$notes read-only
public
string
$notes
$romanization read-only
public
string
$romanization
$suspended read-only
public
bool
$suspended
$tags read-only
public
array<string|int, mixed>
$tags
$term read-only
public
string
$term
$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
stringlwtIdField()
public
lwtIdField() : string
Return values
stringlwtIdFromGuid()
public
static lwtIdFromGuid(string $guid) : int|null
Parameters
- $guid : string