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

  • Category
  • CommonAttributes
  • Content
  • Entry
  • ExtensibleElement
  • Feed
  • Generator
  • Person

Class Person

A Person construct is an element that describes a person, corporation, or similar entity

Gedcomx\Atom\CommonAttributes
Extended by Gedcomx\Atom\ExtensibleElement
Extended by Gedcomx\Atom\Person
Namespace: Gedcomx\Atom
Located at Atom/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\Atom\ExtensibleElement::__construct
public string
# getName( )

a human-readable name for the person.

a human-readable name for the person.

Returns

string
public
# setName( string $name )

a human-readable name for the person.

a human-readable name for the person.

Parameters

$name
public string
# getUri( )

an IRI associated with the person.

an IRI associated with the person.

Returns

string
public
# setUri( string $uri )

an IRI associated with the person.

an IRI associated with the person.

Parameters

$uri
public string
# getEmail( )

an e-mail address associated with the person.

an e-mail address associated with the person.

Returns

string
public
# setEmail( string $email )

an e-mail address associated with the person.

an e-mail address associated with the person.

Parameters

$email
public array
# toArray( )

Returns the associative array for this Person

Returns the associative array for this Person

Returns

array

Overrides

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

Initializes this Person from an associative array

Initializes this Person from an associative array

Parameters

$o

Overrides

Gedcomx\Atom\ExtensibleElement::initFromArray
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\Atom\ExtensibleElement::writeXmlContents

Methods inherited from Gedcomx\Atom\ExtensibleElement

addExtensionElement(), findExtensionOfType(), findExtensionsOfType(), getExtensionElements(), removeExtensionElements(), setExtensionElement(), setExtensionElements()

Methods inherited from Gedcomx\Atom\CommonAttributes

getBase(), getLang(), initFromReader(), setBase(), setLang(), toJson()

gedcomx-php-client API documentation generated by ApiGen