## 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-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Db/Xml/XmlUtil.php (line 32)

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, string $which)
static Zend_Db_Xml_XmlContent getXmlResult (array $xmlRow)
static DOMDocument importSimpleXML (SimpleXML $sXML)
static DOMDocument importString (string $str)
static DOMDocument importXMLFile (string $fXML)
static DOMDocument importXMLFileStream (resource $fsXML)
static string saveXML (Zend_Db_Xml_XmlContent $xmlContent, $which, string $which,)
static void setDOM (Zend_Db_Xml_XmlContent $xmlContent, string $which, DOMDocument $dom)
static void setDOMFromMap (array $map, Zend_Db_Xml_XmlContent $xmlContent, string $which)
Methods
static createDocument (line 237)

Convenience method to create an Zend_Db_Xml_XmlContent() object

- access: public

static Zend_Db_Xml_XmlContent createDocument ()
static exportToFile (line 104)

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 exportToSimpleXML (line 131)

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 exportToString (line 159)

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 getDOM (line 199)

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 getDOMAsMap (line 250)

Retrieve the DOM from either DATA or ABOUT as an array

- access: public

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

- Zend_Db_Xml_XmlContent $xmlContent
- string $which

static getXmlResult (line 280)

Convert an array into an Zend_Db_Xml_XmlContent object

- access: public

static Zend_Db_Xml_XmlContent getXmlResult (array $xmlRow)

- array $xmlRow

static importSimpleXML (line 58)

Convert SimpleXML object, $sXML, into a DOM

- access: public

static DOMDocument importSimpleXML (SimpleXML $sXML)

- SimpleXML $sXML

static importString (line 44)

Convert the string parameter, $str, into a DOM

- access: public

static DOMDocument importString (string $str)

- string $str

static importXMLFile (line 75)

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 (string $fXML)

- string $fXML

static importXMLFileStream (line 90)

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

- access: public

static DOMDocument importXMLFileStream (resource $fsXML)

- resource $fsXML

static saveXML (line 172)

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 setDOM (line 220)

convenience method for setting a DOM

- access: public

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

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

static setDOMFromMap (line 266)

Set the DOM for either DATA or ABOUT from an array

- access: public

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

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

Class Constants
ABOUT = 'about' (line 35)
DATA = 'data' (line 34)

Documentation generated on Wed, 21 Feb 2007 12:03:17 -0800 by phpDocumentor 1.3.1