Schema
in package
implements
Rule
HEAD.SCHMA documents the extension tags with a standard meaning that the conversion writes: "_PHRASE https://gedcom.io/terms/v7/PHRASE" (a relocated PHRASE) when a LANG of the input has no BCP 47 tag (Languages). Whether one does comes from the prepass, so that HEAD is complete when it is converted, as convertFile() needs. A tag the input already has is left out, as its meaning there is not known; an existing SCHMA gets the TAG added (unless it has one for _PHRASE already), an input without HEAD a HEAD. Extensions of the input and those without a standard URI (_SUBN, _TYPE) are not documented: Korin does not guess or invent what they mean.
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
boolrecord()
Converts one record (HEAD and TRLR included) of the document in place.
public
record(Document $document, int $record, Context $context) : void