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 ExtensibleElement

Gedcomx\Atom\CommonAttributes
Extended by Gedcomx\Atom\ExtensibleElement

Direct known subclasses

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

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

Methods summary

public
# __construct( mixed $o = null )

Constructs a ExtensibleElement from a (parsed) JSON hash

Constructs a ExtensibleElement from a (parsed) JSON hash

Parameters

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

Throws

Exception

Overrides

Gedcomx\Atom\CommonAttributes::__construct
public array
# getExtensionElements( )

Custom extension elements for a conclusion.

Custom extension elements for a conclusion.

Returns

array
Custom extension elements for a conclusion.
public
# setExtensionElements( array $elements )

Custom extension elements for a conclusion.

Custom extension elements for a conclusion.

Parameters

$elements
Custom extension elements for a conclusion.
public
# addExtensionElement( mixed $element )

Add an extension element.

Add an extension element.

Parameters

$element
The extension element to add.
public array
# removeExtensionElements( string $class )

Remove extension elements of a given type.

Remove extension elements of a given type.

Parameters

$class
The type of extension element to remove.

Returns

array
The removed extension elements.
public
# setExtensionElement( mixed $element )

Sets an extension element by first removing all previous elements of the same type, then adding it to the list.

Sets an extension element by first removing all previous elements of the same type, then adding it to the list.

Parameters

$element
The element to set.
public mixed
# findExtensionOfType( string $class )

Finds the first extension of a specified type.

Finds the first extension of a specified type.

Parameters

$class
The type.

Returns

mixed
The extension, or null if none found.
public array
# findExtensionsOfType( string $class )

Find the extensions of a specified type.

Find the extensions of a specified type.

Parameters

$class
The type.

Returns

array
The extensions, possibly empty but not null.
public array
# toArray( )

Returns the associative array for this ExtensibleElement

Returns the associative array for this ExtensibleElement

Returns

array

Overrides

Gedcomx\Atom\CommonAttributes::toArray
public
# initFromArray( array $o )

Initializes this ExtensibleElement from an associative array

Initializes this ExtensibleElement from an associative array

Parameters

$o

Overrides

Gedcomx\Atom\CommonAttributes::initFromArray
public
# writeXmlContents( XMLWriter $writer )

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

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

Parameters

$writer
The XML writer.

Overrides

Gedcomx\Atom\CommonAttributes::writeXmlContents

Methods inherited from Gedcomx\Atom\CommonAttributes

getBase(), getLang(), initFromReader(), setBase(), setLang(), toJson()

gedcomx-php API documentation generated by ApiGen