Class 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.

Located in /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 )
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:
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:
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:
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:
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:
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:
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

Redefined in descendants as:
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:

Documentation generated on Sun, 29 Oct 2006 21:28:03 -0600 by phpDocumentor 1.3.0RC6