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

  • Category
  • CommonAttributes
  • Content
  • Entry
  • ExtensibleElement
  • Feed
  • Generator
  • Person

Class Content

Namespace: Gedcomx\Atom
Located at Atom/Content.php

Methods summary

public
# __construct( mixed $o = null )

Constructs a Content from a (parsed) JSON hash

Constructs a Content from a (parsed) JSON hash

Parameters

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

Throws

Exception
public string
# getType( )

The type of the content.

The type of the content.

Returns

string
public
# setType( string $type )

The type of the content.

The type of the content.

Parameters

$type
public Gedcomx\Gedcomx
# getGedcomx( )

The genealogical data associated with this entry.

The genealogical data associated with this entry.

Returns

Gedcomx\Gedcomx
public
# setGedcomx( Gedcomx\Gedcomx $gedcomx )

The genealogical data associated with this entry.

The genealogical data associated with this entry.

Parameters

$gedcomx
public array
# toArray( )

Returns the associative array for this Content

Returns the associative array for this Content

Returns

array
public string
# toJson( )

Returns the JSON string for this Content

Returns the JSON string for this Content

Returns

string
public
# initFromArray( array $o )

Initializes this Content from an associative array

Initializes this Content from an associative array

Parameters

$o
public
# initFromReader( XMLReader $xml )

Initializes this Content from an XML reader.

Initializes this Content from an XML reader.

Parameters

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

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

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

Parameters

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