Example #1
0
 /**
  * Returns the Document objects that will be written to the file system
  *
  * @param DatabaseInterface $database
  * @return array
  */
 protected function _getObjectsWrite($database)
 {
     $objectsToWrite = array();
     $database->rewind();
     while ($database->valid()) {
         /** @var DocumentInterface $item */
         $item = $database->current();
         if ($item) {
             $objectsToWrite[] = $item->getData();
             //			} else {
             //				DebugUtility::pl('Current item is NULL');
         }
         $database->next();
     }
     return $objectsToWrite;
 }