Class RecordSet
The GEDCOM X bulk record data formats are used to exchange bulk genealogical data sets, grouped into records.
-
Gedcomx\Common\ExtensibleData
-
Gedcomx\Links\HypermediaEnabledData
implements
Gedcomx\Links\SupportsLinks
-
Gedcomx\Records\RecordSet
Methods summary
public
|
#
__construct( mixed $o = null )
Constructs a RecordSet from a (parsed) JSON hash
Constructs a RecordSet from a (parsed) JSON hash
Parameters
- $o
- Either an array (JSON) or an XMLReader.
Throws
Exception
Overrides
|
public
string
|
#
getLang( )
The language of the genealogical data.
The language of the genealogical data.
Returns
string
|
public
|
#
setLang( string $lang )
The language of the genealogical data.
The language of the genealogical data.
Parameters
|
public
Gedcomx\Gedcomx
|
#
getMetadata( )
Metadata about this record set; shared among all records in the set.
Metadata about this record set; shared among all records in the set.
Returns
|
public
|
#
setMetadata( Gedcomx\Gedcomx $metadata )
Metadata about this record set; shared among all records in the set.
Metadata about this record set; shared among all records in the set.
Parameters
|
public
Gedcomx\Gedcomx[]
|
#
getRecords( )
The records included in this genealogical data set.
The records included in this genealogical data set.
Returns
|
public
|
#
setRecords( array $records )
The records included in this genealogical data set.
The records included in this genealogical data set.
Parameters
|
public
array
|
#
toArray( )
Returns the associative array for this RecordSet
Returns the associative array for this RecordSet
Returns
array
Overrides
|
public
|
#
initFromArray( array $o )
Initializes this RecordSet from an associative array
Initializes this RecordSet from an associative array
Parameters
Overrides
|
public
|
#
toXml( XMLWriter $writer, boolean $includeNamespaces = true )
Writes this RecordSet to an XML writer.
Writes this RecordSet to an XML writer.
Parameters
- $writer
- The XML writer.
- $includeNamespaces
- Whether to write out the namespaces in the element.
|
public
|
#
writeXmlContents( XMLWriter $writer )
Writes the contents of this RecordSet to an XML writer. The startElement is expected to be already provided.
Writes the contents of this RecordSet to an XML writer. The startElement is expected to be already provided.
Parameters
Overrides
|
addExtensionElement()
,
findExtensionOfType()
,
findExtensionsOfType()
,
getExtensionElements()
,
getId()
,
initFromReader()
,
removeExtensionElements()
,
setExtensionElement()
,
setExtensionElements()
,
setId()
,
toJson()