◆ __construct()
OWLStanza::__construct |
( |
|
$owl, |
|
|
|
$parse_children = TRUE |
|
) |
| |
Implements the constructor.
- Parameters
-
$parse_children | A boolean (TRUE or FALSE) indicating if children should be parsed. If FALSE only attributes will be parse. |
◆ getAttribute()
OWLStanza::getAttribute |
( |
|
$attribute_name | ) |
|
- Parameters
-
- 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()
Get the Value
@ return The text value of a XML element.
◆ 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
-
$attributes | An 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
-
$children | An 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_name | The XML element tag name |
- Returns
- value element tag name.
The documentation for this class was generated from the following file: