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 EventRole

A role that a specific person plays in an event.

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\EventRole
Namespace: Gedcomx\Conclusion
Located at Conclusion/EventRole.php

Methods summary

public
# __construct( mixed $o = null )

Constructs a EventRole from a (parsed) JSON hash

Constructs a EventRole from a (parsed) JSON hash

Parameters

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

Throws

Exception

Overrides

Gedcomx\Conclusion\Conclusion::__construct
public string
# getType( )

The role type.

The role type.

Returns

string
public
# setType( string $type )

The role type.

The role type.

Parameters

$type
public Gedcomx\Common\ResourceReference
# getPerson( )

Reference to the person playing the role in the event.

Reference to the person playing the role in the event.

Returns

Gedcomx\Common\ResourceReference
public
# setPerson( Gedcomx\Common\ResourceReference $person )

Reference to the person playing the role in the event.

Reference to the person playing the role in the event.

Parameters

$person
public string
# getDetails( )

Details about the role of the person in the event.

Details about the role of the person in the event.

Returns

string
public
# setDetails( string $details )

Details about the role of the person in the event.

Details about the role of the person in the event.

Parameters

$details
public array
# toArray( )

Returns the associative array for this EventRole

Returns the associative array for this EventRole

Returns

array

Overrides

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

Initializes this EventRole from an associative array

Initializes this EventRole from an associative array

Parameters

$o

Overrides

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

Parameters

$visitor
public
# writeXmlContents( XMLWriter $writer )

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

Writes the contents of this EventRole 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