Delta revision id can be stored into the XML delta

SVN:trunk[2818]
This commit is contained in:
Romain Quetiez
2013-08-09 15:53:42 +00:00
parent 58af5528be
commit 8881450d59

View File

@@ -1259,7 +1259,7 @@ EOF
/**
* Get the text/XML version of the delta
*/
public function GetDelta($aNodesToIgnore = array())
public function GetDelta($aNodesToIgnore = array(), $iRevisionId = null)
{
$oDelta = new MFDocument();
foreach($this->ListChanges() as $oAlteredNode)
@@ -1274,6 +1274,10 @@ EOF
$oNode->parentNode->removeChild($oNode);
}
}
if ($iRevisionId != null)
{
$oDelta->documentElement->setAttribute('revision_id', $iRevisionId);
}
return $oDelta->saveXML();
}