mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
🔧 write the tooling methods enabling migration to/from iTop 2.7
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user