## Zend_Db_Xml_XmlUtil

Description

Zend_Db_Xml_XmlUtil provides a set of utility convenience methods to convert to/from various XML representations and Zend_Db_Xml_XmlContent

- author: Salvador Ledezma <ledezma@us.ibm.com>
- license: Zend Framework License version 1.0
- copyright: Copyright (c) 2005-2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /library/Zend/Db/Xml/XmlUtil.php (line 30)

Class Constant Summary
ABOUT = 'about'
DATA = 'data'
Method Summary
static Zend_Db_Xml_XmlContent createDocument ()
static mixed exportToFile (Zend_Db_Xml_XmlContent $xmlContent, $which, string $name, string $which,)
static SimpleXML exportToSimpleXML (Zend_Db_Xml_XmlContent $xmlContent, $which, string $which,)
static string exportToString (Zend_Db_Xml_XmlContent $xmlContent, $which, string $which,)
static DOMDocument getDOM (Zend_Db_Xml_XmlContent $xmlContent, $which, string $which,)
static array getDOMAsMap (Zend_Db_Xml_XmlContent $xmlContent, $which, string $which )
static Zend_Db_Xml_XmlContent getXmlResult ( $xmlRow, array $xmlRow )
static DOMDocument importSimpleXML ( $sXML, SimpleXML $sXML )
static DOMDocument importString ( $str, string $str )
static DOMDocument importXMLFile ( $fXML, string $fXML )
static DOMDocument importXMLFileStream ( $fsXML, resource $fsXML )
static string saveXML (Zend_Db_Xml_XmlContent $xmlContent, $which, string $which,)
static void setDOM (Zend_Db_Xml_XmlContent $xmlContent, string $which, $dom, DOMDocument $dom )
static void setDOMFromMap (array $map, Zend_Db_Xml_XmlContent $xmlContent, $which, string $which )
Methods
static createDocument (line 235)

Convenience method to create an Zend_Db_Xml_XmlContent() object

- access: public

Zend_Db_Xml_XmlContent createDocument ()
static exportToFile (line 102)

Save the DOM to a file in the local directory path

- access: public

mixed exportToFile (Zend_Db_Xml_XmlContent $xmlContent, $which, string $name, string $which,)

- Zend_Db_Xml_XmlContent $xmlContent
- string $which,: DATA or ABOUT
- string $name: of the file
- $which

static exportToSimpleXML (line 129)

Convenience method to get a SimpleXML object representation of a DOM

- access: public

SimpleXML exportToSimpleXML (Zend_Db_Xml_XmlContent $xmlContent, $which, string $which,)

- Zend_Db_Xml_XmlContent $xmlContent
- string $which,: get the DOM associated with either data or about
- $which

static exportToString (line 157)

Convenience method to get a string representation of a DOM Same as saveXML()

- access: public

string exportToString (Zend_Db_Xml_XmlContent $xmlContent, $which, string $which,)

- Zend_Db_Xml_XmlContent $xmlContent
- string $which,: get the DOM associated with either data or about
- $which

static getDOM (line 197)

Convenience method to get a DOM

- access: public

DOMDocument getDOM (Zend_Db_Xml_XmlContent $xmlContent, $which, string $which,)

- Zend_Db_Xml_XmlContent $xmlContent
- string $which,: get the DOM associated with either data or about
- $which

static getDOMAsMap (line 248)

Retrieve the DOM from either DATA or ABOUT as an array

- access: public

array getDOMAsMap (Zend_Db_Xml_XmlContent $xmlContent, $which, string $which )

- Zend_Db_Xml_XmlContent $xmlContent
- string $which
- $which

static getXmlResult (line 278)

Convert an array into an Zend_Db_Xml_XmlContent object

- access: public

Zend_Db_Xml_XmlContent getXmlResult ( $xmlRow, array $xmlRow )

- array $xmlRow
- $xmlRow

static importSimpleXML (line 56)

Convert SimpleXML object, $sXML, into a DOM

- access: public

DOMDocument importSimpleXML ( $sXML, SimpleXML $sXML )

- SimpleXML $sXML
- $sXML

static importString (line 42)

Convert the string parameter, $str, into a DOM

- access: public

DOMDocument importString ( $str, string $str )

- string $str
- $str

static importXMLFile (line 73)

Open the file associated with file at local path, $fXML.

Convert it to a DOM

parameter represents path to the file

- access: public

DOMDocument importXMLFile ( $fXML, string $fXML )

- string $fXML
- $fXML

static importXMLFileStream (line 88)

$fsXML is a file stream. Convert the stream to a DOM

- access: public

DOMDocument importXMLFileStream ( $fsXML, resource $fsXML )

- resource $fsXML
- $fsXML

static saveXML (line 170)

Convenience method to get a string representation of a DOM

- access: public

string saveXML (Zend_Db_Xml_XmlContent $xmlContent, $which, string $which,)

- Zend_Db_Xml_XmlContent $xmlContent
- string $which,: get the DOM associated with either data or about
- $which

static setDOM (line 218)

convenience method for setting a DOM

- access: public

void setDOM (Zend_Db_Xml_XmlContent $xmlContent, string $which, $dom, DOMDocument $dom )

- Zend_Db_Xml_XmlContent $xmlContent
- string $which: indicating which field to set the dom, either data or about
- DOMDocument $dom
- $dom

static setDOMFromMap (line 264)

Set the DOM for either DATA or ABOUT from an array

- access: public

void setDOMFromMap (array $map, Zend_Db_Xml_XmlContent $xmlContent, $which, string $which )

- array $map
- Zend_Db_Xml_XmlContent $xmlContent
- string $which
- $which

Class Constants
ABOUT = 'about' (line 33)
DATA = 'data' (line 32)

Documentation generated on Tue, 11 Jul 2006 12:24:24 -0500 by phpDocumentor 1.3.0RC6