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

  • Collection
  • CollectionContent
  • Field
  • FieldDescriptor
  • FieldValue
  • FieldValueDescriptor
  • RecordDescriptor
  • RecordSet
  • RecordSetIterator

Interfaces

  • HasFields

Class FieldValue

An element representing a value in a record field.

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

Methods summary

public
# __construct( mixed $o = null )

Constructs a FieldValue from a (parsed) JSON hash

Constructs a FieldValue from a (parsed) JSON hash

Parameters

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

Throws

Exception

Overrides

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

URI that resolves to the value of the field.

URI that resolves to the value of the field.

Returns

string
public
# setResource( string $resource )

URI that resolves to the value of the field.

URI that resolves to the value of the field.

Parameters

$resource
public string
# getDatatype( )

The datatype of the text value of the field.

The datatype of the text value of the field.

Returns

string
public
# setDatatype( string $datatype )

The datatype of the text value of the field.

The datatype of the text value of the field.

Parameters

$datatype
public string
# getType( )

The type of the field value.

The type of the field value.

Returns

string
public
# setType( string $type )

The type of the field value.

The type of the field value.

Parameters

$type
public string
# getLabelId( )

The id of the label applicable to this field value.

The id of the label applicable to this field value.

Returns

string
public
# setLabelId( string $labelId )

The id of the label applicable to this field value.

The id of the label applicable to this field value.

Parameters

$labelId
public string
# getText( )

The text value.

The text value.

Returns

string
public
# setText( string $text )

The text value.

The text value.

Parameters

$text
public array
# toArray( )

Returns the associative array for this FieldValue

Returns the associative array for this FieldValue

Returns

array

Overrides

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

Initializes this FieldValue from an associative array

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

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