/**
  * Create a DocumentSet from a SimpleDb resultset
  *
  * @param  Zend_Service_Amazon_SimpleDb_Page $resultSet
  * @param  bool $returnDocs
  * @return Zend_Cloud_DocumentService_DocumentSet
  */
 protected function _getDocumentSetFromResultSet(Zend_Service_Amazon_SimpleDb_Page $resultSet, $returnDocs = true)
 {
     $docs = array();
     foreach ($resultSet->getData() as $item) {
         $docs[] = $this->_resolveAttributes($item, $returnDocs);
     }
     $setClass = $this->getDocumentSetClass();
     return new $setClass($docs);
 }
Esempio n. 2
0
 public function testSetDataPerConstructor()
 {
     $page = new Zend_Service_Amazon_SimpleDb_Page('data');
     $this->assertEquals('data', $page->getData());
 }