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 Person

A person.

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\Subject implements Gedcomx\Common\Attributable
Extended by Gedcomx\Conclusion\Person implements Gedcomx\Conclusion\HasFacts, Gedcomx\Records\HasFields
Namespace: Gedcomx\Conclusion
Located at Conclusion/Person.php

Methods summary

public
# __construct( mixed $o = null )

Constructs a Person from a (parsed) JSON hash

Constructs a Person from a (parsed) JSON hash

Parameters

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

Throws

Exception

Overrides

Gedcomx\Conclusion\Subject::__construct
public boolean
# getPrincipal( )

Whether this person is the 'principal' person extracted from the record.

Whether this person is the 'principal' person extracted from the record.

Returns

boolean
public
# setPrincipal( boolean $principal )

Whether this person is the 'principal' person extracted from the record.

Whether this person is the 'principal' person extracted from the record.

Parameters

$principal
public boolean
# isPrivate( )

Whether this person has been designated for limited distribution or display.

Whether this person has been designated for limited distribution or display.

Returns

boolean
public
# setPrivate( boolean $private )

Whether this person has been designated for limited distribution or display.

Whether this person has been designated for limited distribution or display.

Parameters

$private
public boolean
# isLiving( )

Living status of the person as treated by the system.

Living status of the person as treated by the system.

Returns

boolean
public
# setLiving( boolean $living )

Living status of the person as treated by the system.

Living status of the person as treated by the system.

Parameters

$living
public Gedcomx\Conclusion\Gender
# getGender( )

The gender conclusion for the person.

The gender conclusion for the person.

Returns

Gedcomx\Conclusion\Gender
public
# setGender( Gedcomx\Conclusion\Gender $gender )

The gender conclusion for the person.

The gender conclusion for the person.

Parameters

$gender
public Gedcomx\Conclusion\Name[]
# getNames( )

The name conclusions for the person.

The name conclusions for the person.

Returns

Gedcomx\Conclusion\Name[]
public
# setNames( Gedcomx\Conclusion\Name[] $names )

The name conclusions for the person.

The name conclusions for the person.

Parameters

$names
public Gedcomx\Conclusion\Fact[]|Gedcomx\Conclusion\Fact|null
# getFactsOfType( string $type )

Return a fact of a specific type.

Return a fact of a specific type.

Parameters

$type
type

Returns

Gedcomx\Conclusion\Fact[]|Gedcomx\Conclusion\Fact|null
public Gedcomx\Conclusion\Fact[]
# getFacts( )

The fact conclusions for the person.

The fact conclusions for the person.

Returns

Gedcomx\Conclusion\Fact[]

Implementation of

Gedcomx\Conclusion\HasFacts::getFacts()
public
# setFacts( array $facts )

The fact conclusions for the person.

The fact conclusions for the person.

Parameters

$facts

Implementation of

Gedcomx\Conclusion\HasFacts::setFacts()
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[]

Implementation of

Gedcomx\Records\HasFields::getFields()
public
# setFields( array $fields )

The references to the record fields being used as evidence.

The references to the record fields being used as evidence.

Parameters

$fields

Implementation of

Gedcomx\Records\HasFields::setFields()
public Gedcomx\Conclusion\DisplayProperties
# getDisplayExtension( )

Display properties for the person. Display properties are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.

Display properties for the person. Display properties are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.

Returns

Gedcomx\Conclusion\DisplayProperties
public
# setDisplayExtension( Gedcomx\Conclusion\DisplayProperties $displayExtension )

Display properties for the person. Display properties are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.

Display properties for the person. Display properties are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.

Parameters

$displayExtension
public array
# toArray( )

Returns the associative array for this Person

Returns the associative array for this Person

Returns

array

Overrides

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

Initializes this Person from an associative array

Initializes this Person from an associative array

Parameters

$o

Overrides

Gedcomx\Conclusion\Subject::initFromArray
public
# accept( Gedcomx\Rt\GedcomxModelVisitor $visitor )

Parameters

$visitor
public
# toXml( XMLWriter $writer, boolean $includeNamespaces = true )

Writes this Person to an XML writer.

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

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

Parameters

$writer
The XML writer.

Overrides

Gedcomx\Conclusion\Subject::writeXmlContents

Methods inherited from Gedcomx\Conclusion\Subject

getEvidence(), getExtracted(), getIdentifiers(), getMedia(), setEvidence(), setExtracted(), setIdentifiers(), setMedia()

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