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 NamePart

A part of a name.

Gedcomx\Common\ExtensibleData
Extended by Gedcomx\Conclusion\NamePart
Namespace: Gedcomx\Conclusion
Located at Conclusion/NamePart.php

Methods summary

public
# __construct( mixed $o = null )

Constructs a NamePart from a (parsed) JSON hash

Constructs a NamePart from a (parsed) JSON hash

Parameters

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

Throws

Exception

Overrides

Gedcomx\Common\ExtensibleData::__construct
public string
# getValue( )

The value of the name part.

The value of the name part.

Returns

string
public
# setValue( string $value )

The value of the name part.

The value of the name part.

Parameters

$value
public string
# getType( )

The type of the name part.

The type of the name part.

Returns

string
public
# setType( string $type )

The type of the name part.

The type of the name part.

Parameters

$type
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( array $fields )

The references to the record fields being used as evidence.

The references to the record fields being used as evidence.

Parameters

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

The qualifiers associated with this name part.

The qualifiers associated with this name part.

Returns

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

The qualifiers associated with this name part.

The qualifiers associated with this name part.

Parameters

$qualifiers
public array
# toArray( )

Returns the associative array for this NamePart

Returns the associative array for this NamePart

Returns

array

Overrides

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

Initializes this NamePart from an associative array

Initializes this NamePart from an associative array

Parameters

$o

Overrides

Gedcomx\Common\ExtensibleData::initFromArray
public
# accept( Gedcomx\Rt\GedcomxModelVisitor $visitor )

Parameters

$visitor
public
# writeXmlContents( XMLWriter $writer )

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

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

Parameters

$writer
The XML writer.

Overrides

Gedcomx\Common\ExtensibleData::writeXmlContents

Methods inherited from Gedcomx\Common\ExtensibleData

addExtensionElement(), findExtensionOfType(), findExtensionsOfType(), getExtensionElements(), getId(), initFromReader(), removeExtensionElements(), setExtensionElement(), setExtensionElements(), setId(), toJson()

gedcomx-php API documentation generated by ApiGen