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

  • Attribution
  • CustomEntity
  • CustomKeyedItem
  • EvidenceReference
  • ExtensibleData
  • Note
  • Qualifier
  • ResourceReference
  • TextValue
  • UniqueCustomKeyedItem

Interfaces

  • Attributable
  • HasNotes

Class TextValue

An element representing a text value that may be in a specific language.

Namespace: Gedcomx\Common
Located at Common/TextValue.php

Methods summary

public
# __construct( mixed $o = null )

Constructs a TextValue from a (parsed) JSON hash

Constructs a TextValue from a (parsed) JSON hash

Parameters

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

Throws

Exception
public string
# getLang( )

The language of the text value.

The language of the text value.

Returns

string
public
# setLang( string $lang )

The language of the text value.

The language of the text value.

Parameters

$lang

Returns


$this
public string
# getValue( )

The text value.

The text value.

Returns

string
public
# setValue( string $value )

The text value.

The text value.

Parameters

$value

Returns


$this
public array
# toArray( )

Returns the associative array for this TextValue

Returns the associative array for this TextValue

Returns

array
public string
# toJson( )

Returns the JSON string for this TextValue

Returns the JSON string for this TextValue

Returns

string
public
# initFromArray( array $o )

Initializes this TextValue from an associative array

Initializes this TextValue from an associative array

Parameters

$o
public
# initFromReader( XMLReader $xml )

Initializes this TextValue from an XML reader.

Initializes this TextValue from an XML reader.

Parameters

$xml
The reader to use to initialize this object.
public
# writeXmlContents( XMLWriter $writer )

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

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

Parameters

$writer
The XML writer.
gedcomx-php-client API documentation generated by ApiGen