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 Field

A field of a record.

Gedcomx\Common\ExtensibleData
Extended by Gedcomx\Links\HypermediaEnabledData implements Gedcomx\Links\SupportsLinks
Extended by Gedcomx\Records\Field
Namespace: Gedcomx\Records
Located at Records/Field.php

Methods summary

public
# __construct( mixed $o = null )

Constructs a Field from a (parsed) JSON hash

Constructs a Field from a (parsed) JSON hash

Parameters

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

Throws

Exception

Overrides

Gedcomx\Links\HypermediaEnabledData::__construct
public string
# getType( )

The type of the gender.

The type of the gender.

Returns

string
public
# setType( string $type )

The type of the gender.

The type of the gender.

Parameters

$type
public Gedcomx\Records\FieldValue[]
# getValues( )

The set of values for the field.

The set of values for the field.

Returns

Gedcomx\Records\FieldValue[]
public
# setValues( Gedcomx\Records\FieldValue[] $values )

The set of values for the field.

The set of values for the field.

Parameters

$values
public array
# toArray( )

Returns the associative array for this Field

Returns the associative array for this Field

Returns

array

Overrides

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

Initializes this Field from an associative array

Initializes this Field from an associative array

Parameters

$o

Overrides

Gedcomx\Links\HypermediaEnabledData::initFromArray
public
# accept( Gedcomx\Rt\GedcomxModelVisitor $visitor )
public
# writeXmlContents( XMLWriter $writer )

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

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

Parameters

$writer
The XML writer.

Overrides

Gedcomx\Links\HypermediaEnabledData::writeXmlContents

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