Korin API

Aliases
in package
implements Rule

FinalYes

A record whose extension tag HEAD.SCHMA documents as a standard record (TAG _USER https://gedcom.io/terms/v7/record-SUBM) is that record in 7.0, and gets the standard tag in 5.5.1, which has no SCHMA: _USER → SUBM. HEAD is converted before the records after it, so its SCHMA may be _SCHMA already.

Table of Contents

Interfaces

Rule
One conversion rule. It changes one record at a time, so that a conversion can stream: what it must know about the whole input comes from the Prepass, which runs only when a rule needs it.

Methods

needsPrepass()  : bool
Whether the rule needs Context::prepass(): facts about the whole input before the first record.
record()  : void
Converts one record (HEAD and TRLR included) of the document in place.

Methods

needsPrepass()

Whether the rule needs Context::prepass(): facts about the whole input before the first record.

public needsPrepass() : bool
Return values
bool

record()

Converts one record (HEAD and TRLR included) of the document in place.

public record(Document $document, int $record, Context $context) : void
Parameters
$document : Document
$record : int
$context : Context
On this page

Search results