mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 05:58:46 +02:00
+ renamed a few classes/enums/attributes to improve the classes naming consistency and ease the writing of OQLs + fixed errors in the profiles SVN:trunk[2434]
This commit is contained in:
@@ -30,6 +30,7 @@ SetupWebPage::AddModule(
|
||||
),
|
||||
'mandatory' => false,
|
||||
'visible' => true,
|
||||
'installer' => 'EndUserMgmtInstaller',
|
||||
|
||||
// Components
|
||||
//
|
||||
@@ -59,5 +60,43 @@ SetupWebPage::AddModule(
|
||||
)
|
||||
);
|
||||
|
||||
if (!class_exists('EndUserMgmtInstaller'))
|
||||
{
|
||||
// Module installation handler
|
||||
//
|
||||
class EndUserMgmtInstaller extends ModuleInstallerAPI
|
||||
{
|
||||
public static function BeforeWritingConfig(Config $oConfiguration)
|
||||
{
|
||||
// If you want to override/force some configuration values, do it here
|
||||
return $oConfiguration;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handler called before creating or upgrading the database schema
|
||||
* @param $oConfiguration Config The new configuration of the application
|
||||
* @param $sPreviousVersion string PRevious version number of the module (empty string in case of first install)
|
||||
* @param $sCurrentVersion string Current version number of the module
|
||||
*/
|
||||
public static function BeforeDatabaseCreation(Config $oConfiguration, $sPreviousVersion, $sCurrentVersion)
|
||||
{
|
||||
if (strlen($sPreviousVersion) > 0)
|
||||
{
|
||||
// If you want to migrate data from one format to another, do it here
|
||||
self::RenameClassInDB('IpPhone', 'IPPhone');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Handler called after the creation/update of the database schema
|
||||
* @param $oConfiguration Config The new configuration of the application
|
||||
* @param $sPreviousVersion string PRevious version number of the module (empty string in case of first install)
|
||||
* @param $sCurrentVersion string Current version number of the module
|
||||
*/
|
||||
public static function AfterDatabaseCreation(Config $oConfiguration, $sPreviousVersion, $sCurrentVersion)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user