gedcomx-php
  • Namespace
  • Class

Namespaces

  • Gedcomx
    • Agent
    • Atom
    • Common
    • Conclusion
    • Extensions
      • FamilySearch
        • Platform
          • Artifacts
          • Discussions
          • Tree
          • Users
        • Rt
        • Types
    • GedcomxFile
    • Links
    • Records
    • Rt
    • Search
    • Source
    • Support
    • Types
    • Util
    • Vocab

Classes

  • Conclusion
  • DateInfo
  • DisplayProperties
  • Document
  • Event
  • EventRole
  • Fact
  • Gender
  • Identifier
  • Name
  • NameForm
  • NamePart
  • Person
  • PlaceDescription
  • PlaceDisplayProperties
  • PlaceReference
  • Relationship
  • Subject

Interfaces

  • HasFacts

Class Fact

A conclusion about a fact applicable to a person or relationship.

Gedcomx\Common\ExtensibleData
Extended by Gedcomx\Links\HypermediaEnabledData implements Gedcomx\Links\SupportsLinks
Extended by Gedcomx\Conclusion\Conclusion implements Gedcomx\Common\Attributable, Gedcomx\Source\ReferencesSources, Gedcomx\Common\HasNotes
Extended by Gedcomx\Conclusion\Fact
Namespace: Gedcomx\Conclusion
Located at Conclusion/Fact.php

Methods summary

public
# __construct( mixed $o = null )

Constructs a Fact from a (parsed) JSON hash

Constructs a Fact from a (parsed) JSON hash

Parameters

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

Throws

Exception

Overrides

Gedcomx\Conclusion\Conclusion::__construct
public boolean
# getPrimary( )

Whether this fact is the primary fact of the record from which the subject was extracted.

Whether this fact is the primary fact of the record from which the subject was extracted.

Returns

boolean
public
# setPrimary( boolean $primary )

Whether this fact is the primary fact of the record from which the subject was extracted.

Whether this fact is the primary fact of the record from which the subject was extracted.

Parameters

$primary
public string
# getType( )

The type of the fact.

The type of the fact.

Returns

string
public
# setType( string $type )

The type of the fact.

The type of the fact.

Parameters

$type
public Gedcomx\Conclusion\DateInfo
# getDate( )

The date of applicability of this fact.

The date of applicability of this fact.

Returns

Gedcomx\Conclusion\DateInfo
public
# setDate( Gedcomx\Conclusion\DateInfo $date )

The date of applicability of this fact.

The date of applicability of this fact.

Parameters

$date
public Gedcomx\Conclusion\PlaceReference
# getPlace( )

The place of applicability of this fact.

The place of applicability of this fact.

Returns

Gedcomx\Conclusion\PlaceReference
public
# setPlace( Gedcomx\Conclusion\PlaceReference $place )

The place of applicability of this fact.

The place of applicability of this fact.

Parameters

$place
public string
# getValue( )

The value as supplied by the user.

The value as supplied by the user.

Returns

string
public
# setValue( string $value )

The value as supplied by the user.

The value as supplied by the user.

Parameters

$value
public Gedcomx\Common\Qualifier[]
# getQualifiers( )

The qualifiers associated with this fact.

The qualifiers associated with this fact.

Returns

Gedcomx\Common\Qualifier[]
public
# setQualifiers( Gedcomx\Common\Qualifier[] $qualifiers )

The qualifiers associated with this fact.

The qualifiers associated with this fact.

Parameters

$qualifiers
public Gedcomx\Records\Field[]
# getFields( )

The references to the record fields being used as evidence.

The references to the record fields being used as evidence.

Returns

Gedcomx\Records\Field[]
public
# setFields( Gedcomx\Records\Field[] $fields )

The references to the record fields being used as evidence.

The references to the record fields being used as evidence.

Parameters

$fields
public array
# toArray( )

Returns the associative array for this Fact

Returns the associative array for this Fact

Returns

array

Overrides

Gedcomx\Conclusion\Conclusion::toArray
public
# initFromArray( array $o )

Initializes this Fact from an associative array

Initializes this Fact from an associative array

Parameters

$o

Overrides

Gedcomx\Conclusion\Conclusion::initFromArray
public
# accept( Gedcomx\Rt\GedcomxModelVisitor $visitor )
public
# toXml( XMLWriter $writer, boolean $includeNamespaces = true )

Writes this Fact to an XML writer.

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

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

Parameters

$writer
The XML writer.

Overrides

Gedcomx\Conclusion\Conclusion::writeXmlContents

Methods inherited from Gedcomx\Conclusion\Conclusion

getAnalysis(), getAttribution(), getConfidence(), getLang(), getNotes(), getSources(), setAnalysis(), setAttribution(), setConfidence(), setLang(), setNotes(), setSources()

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()

gedcomx-php API documentation generated by ApiGen