## Zend_Db_Xml_XmlContentStore

Description

The Zend_Db_Xml_XmlContentStore is an abstract class which represents a repository for XML Documents.

Zend_Db_Xml_XmlContentStore abstracts database persistence via convenience methods. XML Data is represented by Zend_Db_Xml_XmlContent objects. Activities to and from the persistence layer are operated on these objects.

- abstract:
- 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/XmlContentStore.php (line 40)

Direct descendents

Class | Description
--- | ---
Zend_Db_Xml_XmlContentStore_Db2 | The Zend_Db_Xml_XmlContentStore_Db2 represents a DB2 repository for XML Documents.

Variable Summary
Zend_Db_Adapter_Abstract $_conn
Method Summary
Zend_Db_Xml_XmlContentStore __construct (mixed $conn)
integer delete ( $doc, mixed $doc )
integer deleteById ( $id, integer $id )
Zend_Db_Xml_XmlIterator find (array $searchParam, mixed $where, $options, array $options,)
Zend_Db_Xml_XmlIterator findById ( $id, integer $id )
integer insert ( $doc, mixed $doc )
Zend_Db_Xml_XmlContent insertDOM ( $doc, DOMDocument $doc )
Zend_Db_Xml_XmlIterator selectAll ()
integer update ( $doc, mixed $doc )
Variables
Zend_Db_Adapter_Abstract $_conn (line 47)

Represents a connection handle to the persistence layer

- access: protected

Methods
Constructor __construct (line 54)

Zend_Db_Xml_XmlContentStore constructor

- abstract:
- access: public

Zend_Db_Xml_XmlContentStore __construct (mixed $conn)

Redefined in descendants as:

- Zend_Db_Xml_XmlContentStore_Db2::__construct() : Zend_Db_Xml_XmlContentStore_Db2 constructor

delete (line 88)

Removes the XML data represented by an Zend_Db_Xml_XmlContent object from the persistence layer. An array of Zend_Db_Xml_XmlContent objects can also be passed in.

- return: the number of rows deleted
- abstract:
- access: public

integer delete ( $doc, mixed $doc )

- mixed $doc
- $doc

Redefined in descendants as:

- Zend_Db_Xml_XmlContentStore_Db2::delete()

deleteById (line 97)

Removes the XML data given the id of the XML document

- return: the number of rows deleted
- abstract:
- access: public

integer deleteById ( $id, integer $id )

- integer $id
- $id

Redefined in descendants as:

- Zend_Db_Xml_XmlContentStore_Db2::deleteById()

find (line 119)

Finds Zend_Db_Xml_XmlContent documents that match items in array

- abstract:
- access: public

Zend_Db_Xml_XmlIterator find (array $searchParam, mixed $where, $options, array $options,)

- array $searchParam: is an associative array representing element name and element text pairs. This is used to perform a simple xpath search in the persistence layer for docs that match the xpath expression
- array $options,: type of search
- $options

Redefined in descendants as:

- Zend_Db_Xml_XmlContentStore_Db2::find()

findById (line 128)

Returns the Zend_Db_Xml_XmlContent object associated with given id

- abstract:
- access: public

Zend_Db_Xml_XmlIterator findById ( $id, integer $id )

- integer $id
- $id

Redefined in descendants as:

- Zend_Db_Xml_XmlContentStore_Db2::findById()

insert (line 65)

Saves the XML data represented by an Zend_Db_Xml_XmlContent object into the persistence layer. An array of Zend_Db_Xml_XmlContent objects can also be passed in.

- abstract:
- access: public

integer insert ( $doc, mixed $doc )

- mixed $doc
- $doc

Redefined in descendants as:

- Zend_Db_Xml_XmlContentStore_Db2::insert()

insertDOM (line 138)

Convenience method to insert a DOM directly into the persistence layer

- access: public

Zend_Db_Xml_XmlContent insertDOM ( $doc, DOMDocument $doc )

- DOMDocument $doc
- DOMDocument $doc

selectAll (line 104)

Returns all documents in the content store

- abstract:
- access: public

Zend_Db_Xml_XmlIterator selectAll ()

Redefined in descendants as:

- Zend_Db_Xml_XmlContentStore_Db2::selectAll()

update (line 76)

Replaces existing XML data represented by an Zend_Db_Xml_XmlContent object in the persistence layer. An array of Zend_Db_Xml_XmlContent objects can also be passed in.

- return: the number of documents updated
- abstract:
- access: public

integer update ( $doc, mixed $doc )

- mixed $doc
- $doc

Redefined in descendants as:

- Zend_Db_Xml_XmlContentStore_Db2::update()

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