gedcomx-php-client
  • Namespace
  • Class

Namespaces

  • Gedcomx
    • Agent
    • Atom
    • Common
    • Conclusion
    • Extensions
      • FamilySearch
        • Platform
          • Artifacts
          • Discussions
          • Tree
          • Users
        • Rs
          • Client
            • FamilyTree
            • Helpers
            • Memories
            • Util
        • Rt
        • Types
    • GedcomxFile
    • Links
    • Records
    • Rs
      • Client
        • Exception
        • Options
        • Util
    • Rt
    • Search
    • Source
    • Support
    • Types
    • Util
    • Vocab

Classes

  • ChangeInfo
  • ChangeObjectModifier
  • ChangeObjectType
  • ChangeOperation
  • ChildAndParentsRelationship
  • DiscussionReference
  • MatchInfo
  • MatchStatus
  • Merge
  • MergeAnalysis
  • MergeConflict

Class Merge

Class Merge

  • @package Gedcomx\Extensions\FamilySearch\Platform\Tree Manage Merge Object
Namespace: Gedcomx\Extensions\FamilySearch\Platform\Tree
Located at Extensions/FamilySearch/Platform/Tree/Merge.php

Methods summary

public
# __construct( mixed $o = null )

Constructs a Merge from a (parsed) JSON hash

Constructs a Merge from a (parsed) JSON hash

Parameters

$o
Either an array (JSON) or an XMLReader.

Throws

Exception
public Gedcomx\Common\ResourceReference[]
# getResourcesToDelete( )

List of resources to remove from the survivor person.

List of resources to remove from the survivor person.

Returns

Gedcomx\Common\ResourceReference[]
public
# setResourcesToDelete( Gedcomx\Common\ResourceReference[] $resourcesToDelete )

List of resources to remove from the survivor person.

List of resources to remove from the survivor person.

Parameters

$resourcesToDelete
public
# addResourceToDelete( Gedcomx\Common\ResourceReference $resource )

Add a resource to the list of resources to delete from the survivor.

Add a resource to the list of resources to delete from the survivor.

Parameters

$resource
public Gedcomx\Common\ResourceReference[]
# getResourcesToCopy( )

List of resources to copy from the duplicate person to survivor person.

List of resources to copy from the duplicate person to survivor person.

Returns

Gedcomx\Common\ResourceReference[]
public
# setResourcesToCopy( Gedcomx\Common\ResourceReference[] $resourcesToCopy )

List of resources to copy from the duplicate person to survivor person.

List of resources to copy from the duplicate person to survivor person.

Parameters

$resourcesToCopy
public
# addResourceToCopy( Gedcomx\Common\ResourceReference $resource )

Add a resource to the list of resources to copy to the survivor.

Add a resource to the list of resources to copy to the survivor.

Parameters

$resource
public array
# toArray( )

Returns the associative array for this Merge

Returns the associative array for this Merge

Returns

array
public string
# toJson( )

Returns the JSON string for this Merge

Returns the JSON string for this Merge

Returns

string
public
# initFromArray( array $o )

Initializes this Merge from an associative array

Initializes this Merge from an associative array

Parameters

$o
public
# initFromReader( XMLReader $xml )

Initializes this Merge from an XML reader.

Initializes this Merge from an XML reader.

Parameters

$xml
The reader to use to initialize this object.
public
# toXml( XMLWriter $writer, boolean $includeNamespaces = true )

Writes this Merge to an XML writer.

Writes this Merge 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 Merge to an XML writer. The startElement is expected to be already provided.

Writes the contents of this Merge to an XML writer. The startElement is expected to be already provided.

Parameters

$writer
The XML writer.
public
# accept( Gedcomx\Extensions\FamilySearch\Rt\FamilySearchPlatformModelVisitor $visitor )

Accept a visitor.

Accept a visitor.

Parameters

$visitor
gedcomx-php-client API documentation generated by ApiGen