Class Gedcomx
The GEDCOM X data formats define the serialization formats of the GEDCOM X conceptual model. The canonical documentation is provided by the formal specification documents:
- The GEDCOM X Conceptual Model, Version 1.0
- The GEDCOM X JSON Format, Version 1.0
- The GEDCOM X XML Format, Version 1.0
This documentation is provided as a non-normative reference guide.
- Gedcomx\Common\ExtensibleData
- Gedcomx\Links\HypermediaEnabledData implements Gedcomx\Links\SupportsLinks
- Gedcomx\Gedcomx
Direct known subclasses
Methods summary
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
#
setAttribution(
The attribution of this genealogical data. |
public
|
|
public
|
#
setPersons(
The persons included in this genealogical data set. |
public
|
|
public
|
#
setRelationships(
The relationships included in this genealogical data set. |
public
|
|
public
|
#
setSourceDescriptions(
The descriptions of sources included in this genealogical data set. |
public
|
|
public
|
|
public
|
|
public
|
#
setEvents(
The events included in this genealogical data set. |
public
|
|
public
|
#
setPlaces(
The places included in this genealogical data set. |
public
|
|
public
|
#
setDocuments(
The documents included in this genealogical data set. |
public
|
|
public
|
#
setCollections(
The collections included in this genealogical data set. |
public
|
|
public
|
#
setFields(
The extracted fields included in this genealogical data set. |
public
|
|
public
|
#
setRecordDescriptors(
The record descriptors included in this genealogical data set. |
public
array
|
|
public
|
|
public
|
|
public
|
|
public
|
#
writeXmlContents( XMLWriter $writer )
Writes the contents of this Gedcomx to an XML writer. The startElement is expected to be already provided. |
public
|
|
public
|
#
addSourceDescription(
Add a source description to the data set. |
public
|
#
addRelationship(
Add a relationship to the data set. |
Methods inherited from Gedcomx\Links\HypermediaEnabledData
addLink()
,
addLinkRelation()
,
addTemplatedLink()
,
getLink()
,
getLinks()
,
getLinksByRel()
,
setLinks()
Methods inherited from Gedcomx\Common\ExtensibleData
addExtensionElement()
,
findExtensionOfType()
,
findExtensionsOfType()
,
getExtensionElements()
,
getId()
,
initFromReader()
,
removeExtensionElements()
,
setExtensionElement()
,
setExtensionElements()
,
setId()
,
toJson()
Constants summary
string |
JSON_APPLICATION_TYPE
|
#
'application/json'
|
string |
HTML_TYPE
|
#
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
|
string |
FORM_DATA_TYPE
|
#
'application/x-www-form-urlencoded'
|
string |
XML_MEDIA_TYPE
|
#
'application/x-gedcomx-v1+xml'
|
string |
ATOM_XML_MEDIA_TYPE
|
#
'application/x-gedcomx-atom+json'
|
string |
JSON_MEDIA_TYPE
|
#
'application/x-gedcomx-v1+json'
|
string |
ATOM_JSON_MEDIA_TYPE
|
#
'application/x-gedcomx-atom+json'
|
string |
LD_JSON_TYPE
|
#
'application/ld+json'
|
string |
PLAIN_TEXT
|
#
'text/plain'
|