Class Tag
A tag in the FamilySearch system.
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
|
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
|
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
|