Payloads
in package
FinalYes
Whether a structure of a version can have a payload, as far as the conversion between versions needs to know: a value or none, a pointer or not, and enumeration values; with $grammars, in 5.x the grammars too (dates, ages, times, 5.5.5 place names), as the validator checks them. Without, any text fits a grammar: the value rules convert dates and ages.
Lengths (5.5.5 {Size=min:max}, KV3010) are never checked: a value too long for 5.5.5 is still its value.
Table of Contents
Methods
- enumerated() : string|null
- The enumerated element of a 5.x payload ("<SEX_VALUE>"); null when there is none.
- fits() : bool
Methods
enumerated()
The enumerated element of a 5.x payload ("<SEX_VALUE>"); null when there is none.
public
static enumerated(Profile $profile, Structure $structure) : string|null
Parameters
Return values
string|nullfits()
public
static fits(Profile $profile, Structure $structure, string|null $payload[, bool $grammars = false ]) : bool