mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-20 07:42:17 +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:
@@ -890,7 +890,7 @@
|
||||
</list>
|
||||
</presentation>
|
||||
</class>
|
||||
<class id="ServiceFamilly" _delta="define">
|
||||
<class id="ServiceFamily" _delta="define">
|
||||
<parent>cmdbAbstractObject</parent>
|
||||
<properties>
|
||||
<category>bizmodel,searchable</category>
|
||||
|
||||
@@ -223,14 +223,14 @@ Dict::Add('EN US', 'English', 'English', array(
|
||||
));
|
||||
|
||||
//
|
||||
// Class: ServiceFamilly
|
||||
// Class: ServiceFamily
|
||||
//
|
||||
|
||||
Dict::Add('EN US', 'English', 'English', array(
|
||||
'Class:ServiceFamilly' => 'Service Familly',
|
||||
'Class:ServiceFamilly+' => '',
|
||||
'Class:ServiceFamilly/Attribute:name' => 'Name',
|
||||
'Class:ServiceFamilly/Attribute:name+' => '',
|
||||
'Class:ServiceFamily' => 'Service Family',
|
||||
'Class:ServiceFamily+' => '',
|
||||
'Class:ServiceFamily/Attribute:name' => 'Name',
|
||||
'Class:ServiceFamily/Attribute:name+' => '',
|
||||
'Class:ServiceFamily/Attribute:services_list' => 'Services',
|
||||
'Class:ServiceFamily/Attribute:services_list+' => '',
|
||||
));
|
||||
@@ -307,7 +307,7 @@ Dict::Add('EN US', 'English', 'English', array(
|
||||
//
|
||||
|
||||
Dict::Add('EN US', 'English', 'English', array(
|
||||
'Class:ServiceSubcategory' => 'Service Sub category',
|
||||
'Class:ServiceSubcategory' => 'Service Subcategory',
|
||||
'Class:ServiceSubcategory+' => '',
|
||||
'Class:ServiceSubcategory/Attribute:name' => 'Name',
|
||||
'Class:ServiceSubcategory/Attribute:name+' => '',
|
||||
|
||||
@@ -167,14 +167,14 @@ Dict::Add('FR FR', 'French', 'Français', array(
|
||||
));
|
||||
|
||||
//
|
||||
// Class: ServiceFamilly
|
||||
// Class: ServiceFamily
|
||||
//
|
||||
|
||||
Dict::Add('FR FR', 'French', 'Français', array(
|
||||
'Class:ServiceFamilly' => 'Famille de service',
|
||||
'Class:ServiceFamilly+' => '',
|
||||
'Class:ServiceFamilly/Attribute:name' => 'Nom',
|
||||
'Class:ServiceFamilly/Attribute:name+' => '',
|
||||
'Class:ServiceFamily' => 'Famille de service',
|
||||
'Class:ServiceFamily+' => '',
|
||||
'Class:ServiceFamily/Attribute:name' => 'Nom',
|
||||
'Class:ServiceFamily/Attribute:name+' => '',
|
||||
'Class:ServiceFamily/Attribute:services_list' => 'Services',
|
||||
'Class:ServiceFamily/Attribute:services_list+' => '',
|
||||
));
|
||||
|
||||
@@ -17,6 +17,7 @@ SetupWebPage::AddModule(
|
||||
),
|
||||
'mandatory' => false,
|
||||
'visible' => true,
|
||||
'installer' => 'ServiceMgmtInstaller',
|
||||
|
||||
// Components
|
||||
//
|
||||
@@ -51,4 +52,43 @@ SetupWebPage::AddModule(
|
||||
)
|
||||
);
|
||||
|
||||
if (!class_exists('ServiceMgmtInstaller'))
|
||||
{
|
||||
// Module installation handler
|
||||
//
|
||||
class ServiceMgmtInstaller 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('ServiceFamilly', 'ServiceFamily');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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