Liste de tous les membres
Fonctions membres publiques
Attributs publics
Documentation des constructeurs et destructeur
JSimpleXML::__construct |
( |
$ |
options = null | ) |
|
Constructor.
protected
Références $option.
Documentation des fonctions membres
JSimpleXML::_characterData |
( |
$ |
parser, |
|
|
$ |
data |
|
) |
| |
Handler function for the character data within a tag
protected
- Paramètres:
-
resource | $parser | |
string | $data | |
JSimpleXML::_endElement |
( |
$ |
parser, |
|
|
$ |
name |
|
) |
| |
Handler function for the end of a tag
protected
- Paramètres:
-
resource | $parser | |
string | $name | |
JSimpleXML::_getStackLocation |
( |
| ) |
|
Gets the reference to the current direct parent
- Renvoie:
- object
Références $return.
JSimpleXML::_handleError |
( |
$ |
code, |
|
|
$ |
line, |
|
|
$ |
col |
|
) |
| |
Handles an XML parsing error
protected
- Paramètres:
-
int | $code | XML Error Code |
int | $line | Line on which the error happened |
int | $col | Column on which the error happened |
Références JError::raiseWarning().
JSimpleXML::_parse |
( |
$ |
data = '' | ) |
|
Start parsing an XML document
Parses an XML document. The handlers for the configured events are called as many times as necessary.
- Paramètres:
-
Références $data.
JSimpleXML::_startElement |
( |
$ |
parser, |
|
|
$ |
name, |
|
|
$ |
attrs = array() |
|
) |
| |
Handler function for the start of a tag
protected
- Paramètres:
-
resource | $parser | |
string | $name | |
array | $attrs | |
Références $classname, $count, et $name.
JSimpleXML::getParser |
( |
| ) |
|
Get the parser
public
- Renvoie:
- resource XML parser resource handle
JSimpleXML::importDOM |
( |
$ |
node, |
|
|
$ |
classname = null |
|
) |
| |
Get a JSimpleXMLElement object from a DOM node.
This function takes a node of a DOM document and makes it into a JSimpleXML node. This new object can then be used as a native JSimpleXML element. If any errors occur, it returns FALSE.
- Paramètres:
-
string | DOM document |
string | currently ignored |
- Renvoie:
- object JSimpleXMLElement
JSimpleXML::loadFile |
( |
$ |
path, |
|
|
$ |
classname = null |
|
) |
| |
Interprets an XML file into an object
This function will convert the well-formed XML document in the file specified by filename to an object of class JSimpleXMLElement. If any errors occur during file access or interpretation, the function returns FALSE.
- Paramètres:
-
string | Path to xml file containing a well-formed XML document |
string | currently ignored |
- Renvoie:
- boolean True if successful, false if file empty
Références $path.
JSimpleXML::loadString |
( |
$ |
string, |
|
|
$ |
classname = null |
|
) |
| |
Interprets a string of XML into an object
This function will take the well-formed xml string data and return an object of class JSimpleXMLElement with properties containing the data held within the xml document. If any errors occur, it returns FALSE.
- Paramètres:
-
string | Well-formed xml string data |
string | currently ignored |
- Renvoie:
- object JSimpleXMLElement
JSimpleXML::setParser |
( |
$ |
parser | ) |
|
Set the parser
public
- Paramètres:
-
resource | XML parser resource handle |
Documentation des données membres
JSimpleXML::$_parser = null |
JSimpleXML::$_stack = array() |
JSimpleXML::$document = null |
La documentation de cette classe a été générée à partir du fichier suivant :