Tripal
Public Member Functions | List of all members
OWLStanza Class Reference

Public Member Functions

 __construct ($owl, $parse_children=TRUE)
 
 getValue ()
 
 getChildren ()
 
 setChildren ($children)
 
 getChild ($tag_name)
 
 getTagName ()
 
 setTagName ($tag_name)
 
 getAttributes ()
 
 setAttributes ($attributes)
 
 getAttribute ($attribute_name)
 
 isFinished ()
 
 getXML ()
 

Constructor & Destructor Documentation

◆ __construct()

OWLStanza::__construct (   $owl,
  $parse_children = TRUE 
)

Implements the constructor.

Parameters
$parse_childrenA boolean (TRUE or FALSE) indicating if children should be parsed. If FALSE only attributes will be parse.

Member Function Documentation

◆ getAttribute()

OWLStanza::getAttribute (   $attribute_name)
Parameters
$attribute_name
Returns
An|NULL

◆ getAttributes()

OWLStanza::getAttributes ( )

Gets the attributes array.

Returns
An array containing a key/value associative array of all of the attributes between the XML elements tag name.

◆ getChild()

OWLStanza::getChild (   $tag_name)

Gets the child($tag_name) array.

Returns
An OWLStanza object whos tag name matches the tag name provided.

◆ getChildren()

OWLStanza::getChildren ( )

Gets the children array.

Returns
An array of OWLStanza objects containing the children elements.

◆ getTagName()

OWLStanza::getTagName ( )

Gets the tag name.

Returns
An XML element tag name (e.g. ‘owl:ObjectProperty’, 'owl:AnnotationProperty’, 'owl:Ontology').

◆ getValue()

OWLStanza::getValue ( )

Get the Value

@ return The text value of a XML element.

◆ getXML()

OWLStanza::getXML ( )

Reconstructs the XML for the stanza.

Returns
A string containing XML for this stanza.

◆ isFinished()

OWLStanza::isFinished ( )

Checks if the OWL XML file has been completely parsed.

Returns
TRUE if parsing is completed, FALSE otherwise.

◆ setAttributes()

OWLStanza::setAttributes (   $attributes)

Sets the attributes array.

Parameters
$attributesAn array containing a key/value associative array of all of the attributes.
Returns
FALSE if the array was not set, TRUE otherwise.

◆ setChildren()

OWLStanza::setChildren (   $children)

Sets the children array.

Parameters
$childrenAn array of OWLStanza objects containing the children elements.
Returns
FALSE if the array was not set, TRUE otherwise.

◆ setTagName()

OWLStanza::setTagName (   $tag_name)

Sets the tag name.

Parameters
$tag_nameThe XML element tag name
Returns
value element tag name.

The documentation for this class was generated from the following file: