Class Attribution
Attribution for genealogical information. Attribution is used to model who is contributing/modifying
information, when they contributed it, and why they are making the
contribution/modification.
-
Gedcomx\Common\ExtensibleData
-
Gedcomx\Common\Attribution
Methods summary
public
|
#
__construct( mixed $o = null )
Constructs a Attribution from a (parsed) JSON hash
Constructs a Attribution from a (parsed) JSON hash
Parameters
- $o
- Either an array (JSON) or an XMLReader.
Throws
Exception
Overrides
|
public
Gedcomx\Common\ResourceReference
|
#
getContributor( )
Reference to the contributor of the attributed data.
Reference to the contributor of the attributed data.
Returns
|
public
|
|
public
integer
|
#
getModified( )
The modified timestamp for the attributed data.
The modified timestamp for the attributed data.
Returns
integer
|
public
|
#
setModified( integer $modified )
The modified timestamp for the attributed data.
The modified timestamp for the attributed data.
Parameters
|
public
string
|
#
getChangeMessage( )
The "change message" for the attributed data provided by the contributor.
The "change message" for the attributed data provided by the contributor.
Returns
string
|
public
|
#
setChangeMessage( string $changeMessage )
The "change message" for the attributed data provided by the contributor.
The "change message" for the attributed data provided by the contributor.
Parameters
|
public
array
|
#
toArray( )
Returns the associative array for this Attribution
Returns the associative array for this Attribution
Returns
array
Overrides
|
public
|
#
initFromArray( array $o )
Initializes this Attribution from an associative array
Initializes this Attribution from an associative array
Parameters
Overrides
|
public
|
#
toXml( XMLWriter $writer, boolean $includeNamespaces = true )
Writes this Attribution to an XML writer.
Writes this Attribution 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 Attribution to an XML writer. The startElement is expected to be already provided.
Writes the contents of this Attribution 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()