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 CommonAttributes

Direct known subclasses

Gedcomx\Atom\Category, Gedcomx\Atom\ExtensibleElement

Indirect known subclasses

Gedcomx\Atom\Entry, Gedcomx\Atom\Feed, Gedcomx\Atom\Person

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

Methods summary

public
# __construct( mixed $o = null )

Constructs a CommonAttributes from a (parsed) JSON hash

Constructs a CommonAttributes from a (parsed) JSON hash

Parameters

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

Throws

Exception
public string
# getBase( )

The base.

The base.

Returns

string
public
# setBase( string $base )

The base.

The base.

Parameters

$base
public string
# getLang( )

The language.

The language.

Returns

string
public
# setLang( string $lang )

The language.

The language.

Parameters

$lang
public array
# toArray( )

Returns the associative array for this CommonAttributes

Returns the associative array for this CommonAttributes

Returns

array
public string
# toJson( )

Returns the JSON string for this CommonAttributes

Returns the JSON string for this CommonAttributes

Returns

string
public
# initFromArray( array $o )

Initializes this CommonAttributes from an associative array

Initializes this CommonAttributes from an associative array

Parameters

$o
public
# initFromReader( XMLReader $xml )

Initializes this CommonAttributes from an XML reader.

Initializes this CommonAttributes from an XML reader.

Parameters

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

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

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

Parameters

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