Docs For Class Zend_Db_Xml_XmlUtil

## Class 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 /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 method createDocument (line 235)

Convenience method to create an Zend_Db_Xml_XmlContent() object

- access: public

static Zend_Db_Xml_XmlContent createDocument ()
static method exportToFile (line 102)

Save the DOM to a file in the local directory path

- access: public

static 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 method exportToSimpleXML (line 129)

Convenience method to get a SimpleXML object representation of a DOM

- access: public

static 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 method exportToString (line 157)

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

- access: public

static 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 method getDOM (line 197)

Convenience method to get a DOM

- access: public

static 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 method getDOMAsMap (line 248)

Retrieve the DOM from either DATA or ABOUT as an array

- access: public

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

- Zend_Db_Xml_XmlContent $xmlContent
- string $which
- $which

static method getXmlResult (line 278)

Convert an array into an Zend_Db_Xml_XmlContent object

- access: public

static Zend_Db_Xml_XmlContent getXmlResult ( $xmlRow, array $xmlRow )

- array $xmlRow
- $xmlRow

static method importSimpleXML (line 56)

Convert SimpleXML object, $sXML, into a DOM

- access: public

static DOMDocument importSimpleXML ( $sXML, SimpleXML $sXML )

- SimpleXML $sXML
- $sXML

static method importString (line 42)

Convert the string parameter, $str, into a DOM

- access: public

static DOMDocument importString ( $str, string $str )

- string $str
- $str

static method 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

static DOMDocument importXMLFile ( $fXML, string $fXML )

- string $fXML
- $fXML

static method importXMLFileStream (line 88)

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

- access: public

static DOMDocument importXMLFileStream ( $fsXML, resource $fsXML )

- resource $fsXML
- $fsXML

static method saveXML (line 170)

Convenience method to get a string representation of a DOM

- access: public

static 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 method setDOM (line 218)

convenience method for setting a DOM

- access: public

static 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 method setDOMFromMap (line 264)

Set the DOM for either DATA or ABOUT from an array

- access: public

static 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 Sun, 29 Oct 2006 21:28:04 -0600 by phpDocumentor 1.3.0RC6