Possibility to introduce a delta (not in a module) at compile time

SVN:trunk[2817]
This commit is contained in:
Romain Quetiez
2013-08-09 15:47:05 +00:00
parent 98a1242050
commit 58af5528be
4 changed files with 63 additions and 13 deletions

View File

@@ -35,6 +35,8 @@ define ('MODULE_ACTION_IMPOSSIBLE', 3);
define ('ROOT_MODULE', '_Root_'); // Convention to store IN MEMORY the name/version of the root module i.e. application
define ('DATAMODEL_MODULE', 'datamodel'); // Convention to store the version of the datamodel
class RunTimeEnvironment
{
protected $sTargetEnv;
@@ -313,6 +315,14 @@ class RunTimeEnvironment
}
}
}
$sDeltaFile = APPROOT.'data/'.$sSourceEnv.'.delta.xml';
if (file_exists($sDeltaFile))
{
$oDelta = new MFDeltaModule($sDeltaFile);
$aRet[] = $oDelta;
}
return $aRet;
}