function forwardResponse($chunkInfo, $objects) { global $db; $remoteId = $this->get('node_id'); // save modified objects $db->begin(true); $updatedObjects = sotf_NodeObject::saveForwardObjects($objects); // if db error: don't commit! $db->commit(); debug("number of processed forward objects", $updatedObjects); $replyInfo = array('received' => count($objects), 'updated' => $updatedObjects); if ($chunkInfo['objects_remaining'] == 0) { // last chunk, do something useful!! //temporarily taken out sotf_Object::doUpdates(); } return array($replyInfo); }