Korin API

Payloads7
in package
implements PayloadTypes

Read onlyYes
FinalYes

GEDCOM 7.0 payload types: PayloadGrammar and DateGrammar, enumerations from the profile.

Table of Contents

Interfaces

PayloadTypes
The payload types of one GEDCOM version for ValueRule. A type is one alternative of a structure's payload: a 7.0 type URI, a 5.x element such as "<SEX_VALUE>", or "Y".

Methods

__construct()  : mixed
isOptional()  : bool
Whether the type allows an empty payload without saying so with "<NULL>".
problems()  : array<int, Severity, string}>
Why the value is not of the type: code, severity and a message that follows the tag.
requiresContent()  : bool
Whether a structure needs a value or a substructure (KV3007).

Methods

isOptional()

Whether the type allows an empty payload without saying so with "<NULL>".

public isOptional(string $type) : bool
Parameters
$type : string
Return values
bool

problems()

Why the value is not of the type: code, severity and a message that follows the tag.

public problems(Structure $structure, string $type, string $value) : array<int, Severity, string}>
Parameters
$structure : Structure
$type : string
$value : string
Return values
array<int, Severity, string}> —

empty when the value is of the type

requiresContent()

Whether a structure needs a value or a substructure (KV3007).

public requiresContent() : bool
Return values
bool
On this page

Search results