🔧 write the tooling methods enabling migration to/from iTop 2.7

This commit is contained in:
bruno DA SILVA
2019-11-14 12:12:37 +01:00
parent c665bb4761
commit 560eb5e071

View File

@@ -79,6 +79,12 @@ class iTopDesignFormat
'1.6' => array(
'previous' => '1.5',
'go_to_previous' => 'From16To15',
'next' => '1.7',
'go_to_next' => 'From16To17',
),
'1.7' => array(
'previous' => '1.6',
'go_to_previous' => 'From17To16',
'next' => null,
'go_to_next' => null,
),
@@ -665,6 +671,26 @@ class iTopDesignFormat
$this->RemoveNodeFromXPath($sPath);
}
/**
* @param $oFactory
*
* @return void (Errors are logged)
*/
protected function From16To17($oFactory)
{
// nothing changed !
}
/**
* @param $oFactory
*
* @return void (Errors are logged)
*/
protected function From17To16($oFactory)
{
// nothing changed !
}
private function RemoveNodeFromXPath($sPath)
{
$oXPath = new DOMXPath($this->oDocument);