Version
: string
in package
Table of Contents
Cases
- V4_0 = '4.0'
- Read only (best effort): validated with the 5.5 profile, converted to 5.5 and on from there.
- V5_5 = '5.5'
- V5_5_1 = '5.5.1'
- V5_5_5 = '5.5.5'
- V7_0 = '7.0'
Methods
- escapesOnlyLeadingAt() : bool
- fromDeclared() : self|null
- Maps a HEAD.GEDC.VERS value to a version; 7.0.x patches map to 7.0, 5.0–5.4 drafts (and "5.01", the 5.1 of some programs) to 5.5, whose profile reads them; 4.0 as PAF writes it ("4.0.4.18") and as Roots and Ultimate Family Tree do ("4+") to 4.0.
- isWritable() : bool
- Whether documents of this version can be written other than unchanged (4.0 cannot).
- readAs() : self
- The version whose profile, grammars and line rules read this one: 5.5 for 4.0.
Cases
V4_0
Read only (best effort): validated with the 5.5 profile, converted to 5.5 and on from there.
V5_5
V5_5_1
V5_5_5
V7_0
Methods
escapesOnlyLeadingAt()
public
escapesOnlyLeadingAt() : bool
Return values
boolfromDeclared()
Maps a HEAD.GEDC.VERS value to a version; 7.0.x patches map to 7.0, 5.0–5.4 drafts (and "5.01", the 5.1 of some programs) to 5.5, whose profile reads them; 4.0 as PAF writes it ("4.0.4.18") and as Roots and Ultimate Family Tree do ("4+") to 4.0.
public
static fromDeclared(string $declared) : self|null
Parameters
- $declared : string
Return values
self|nullisWritable()
Whether documents of this version can be written other than unchanged (4.0 cannot).
public
isWritable() : bool
Return values
boolreadAs()
The version whose profile, grammars and line rules read this one: 5.5 for 4.0.
public
readAs() : self