ForeignNotetype
in package
FinalYes
A notetype found in an .apkg that LWT did not create.
Field names are arbitrary — "Front"/"Back" for Anki's stock Basic notetype, but shared decks use anything ("Expression", "Meaning", "Word", "Reading"). LWT cannot guess which field holds the term, so the user maps them; this is what the mapping UI is built from.
Table of Contents
Properties
- $fields : array<string|int, mixed>
- $id : int
- $name : string
- $noteCount : int
Methods
- __construct() : mixed
Properties
$fields read-only
public
array<string|int, mixed>
$fields
$id read-only
public
int
$id
$name read-only
public
string
$name
$noteCount read-only
public
int
$noteCount
Methods
__construct()
public
__construct(int $id, string $name, array<int, string> $fields, int $noteCount) : mixed
Parameters
- $id : int
-
Anki's model id (
notes.mid) - $name : string
-
Human-readable notetype name
- $fields : array<int, string>
-
Field names, in Anki's ordinal order
- $noteCount : int
-
How many notes use this notetype