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

  • Error
  • FamilySearchPlatform
  • Feature
  • HealthConfig
  • OAuth2
  • Tag

Class Tag

A tag in the FamilySearch system.

Namespace: Gedcomx\Extensions\FamilySearch
Located at Extensions/FamilySearch/Tag.php

Methods summary

public
# __construct( mixed $o = null )

Constructs a Tag from a (parsed) JSON hash

Constructs a Tag from a (parsed) JSON hash

Parameters

$o
Either an array (JSON) or an XMLReader.
public string
# getResource( )

A reference to the value of the tag.

A reference to the value of the tag.

Returns

string
public
# setResource( string $resource )

A reference to the value of the tag.

A reference to the value of the tag.

Parameters

$resource
public array
# toArray( )

Returns the associative array for this Tag

Returns the associative array for this Tag

Returns

array
public string
# toJson( )

Returns the JSON string for this Tag

Returns the JSON string for this Tag

Returns

string
public
# initFromArray( array $o )

Initializes this Tag from an associative array

Initializes this Tag from an associative array

Parameters

$o
public
# initFromReader( XMLReader $xml )

Initializes this Tag from an XML reader.

Initializes this Tag from an XML reader.

Parameters

$xml
The reader to use to initialize this object.
public
# toXml( XMLWriter $writer, boolean $includeNamespaces = true )

Writes this Tag to an XML writer.

Writes this Tag to an XML writer.

Parameters

$writer
The XML writer.
$includeNamespaces
Whether to write out the namespaces in the element.
public
# writeXmlContents( XMLWriter $writer )

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

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

Parameters

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