mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-24 12:54:11 +01:00
Compare commits
2 Commits
class_extr
...
feature/63
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a3519c907 | ||
|
|
05deaf33bb |
@@ -284,7 +284,8 @@ class UIExtKeyWidget
|
||||
if ($bAddingValue) {
|
||||
$aArguments = [];
|
||||
foreach ($aAdditionalField as $sAdditionalField) {
|
||||
array_push($aArguments, $oObj->Get($sAdditionalField));
|
||||
//getAsCSV to have user friendly value in text format
|
||||
array_push($aArguments, $oObj->GetAsCSV($sAdditionalField, ' ', ''));
|
||||
}
|
||||
$aOption['additional_field'] = utils::HtmlEntities(utils::VSprintf($sFormatAdditionalField, $aArguments));
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ abstract class Trigger extends cmdbAbstractObject
|
||||
"category" => "grant_by_profile,core/cmdb",
|
||||
"key_type" => "autoincrement",
|
||||
"name_attcode" => "description",
|
||||
"complementary_name_attcode" => ['finalclass', 'complement'],
|
||||
"complementary_name_attcode" => ['finalclass', 'target_class'],
|
||||
"state_attcode" => "",
|
||||
"reconc_keys" => ['description'],
|
||||
"db_table" => "priv_trigger",
|
||||
@@ -174,7 +174,7 @@ abstract class TriggerOnObject extends Trigger
|
||||
"category" => "grant_by_profile,core/cmdb",
|
||||
"key_type" => "autoincrement",
|
||||
"name_attcode" => "description",
|
||||
"complementary_name_attcode" => ['finalclass', 'complement'],
|
||||
"complementary_name_attcode" => ['finalclass', 'target_class'],
|
||||
"state_attcode" => "",
|
||||
"reconc_keys" => ['description'],
|
||||
"db_table" => "priv_trigger_onobject",
|
||||
@@ -401,7 +401,7 @@ class TriggerOnPortalUpdate extends TriggerOnObject
|
||||
"category" => "grant_by_profile,core/cmdb,application",
|
||||
"key_type" => "autoincrement",
|
||||
"name_attcode" => "description",
|
||||
"complementary_name_attcode" => ['finalclass', 'complement'],
|
||||
"complementary_name_attcode" => ['finalclass', 'target_class'],
|
||||
"state_attcode" => "",
|
||||
"reconc_keys" => ['description'],
|
||||
"db_table" => "priv_trigger_onportalupdate",
|
||||
@@ -434,7 +434,7 @@ abstract class TriggerOnStateChange extends TriggerOnObject
|
||||
"category" => "grant_by_profile,core/cmdb",
|
||||
"key_type" => "autoincrement",
|
||||
"name_attcode" => "description",
|
||||
"complementary_name_attcode" => ['finalclass', 'complement'],
|
||||
"complementary_name_attcode" => ['finalclass', 'target_class'],
|
||||
"state_attcode" => "",
|
||||
"reconc_keys" => ['description'],
|
||||
"db_table" => "priv_trigger_onstatechange",
|
||||
@@ -469,7 +469,7 @@ class TriggerOnStateEnter extends TriggerOnStateChange
|
||||
"category" => "grant_by_profile,core/cmdb,application",
|
||||
"key_type" => "autoincrement",
|
||||
"name_attcode" => "description",
|
||||
"complementary_name_attcode" => ['finalclass', 'complement'],
|
||||
"complementary_name_attcode" => ['finalclass', 'target_class'],
|
||||
"state_attcode" => "",
|
||||
"reconc_keys" => ['description'],
|
||||
"db_table" => "priv_trigger_onstateenter",
|
||||
@@ -503,7 +503,7 @@ class TriggerOnStateLeave extends TriggerOnStateChange
|
||||
"category" => "grant_by_profile,core/cmdb,application",
|
||||
"key_type" => "autoincrement",
|
||||
"name_attcode" => "description",
|
||||
"complementary_name_attcode" => ['finalclass', 'complement'],
|
||||
"complementary_name_attcode" => ['finalclass', 'target_class'],
|
||||
"state_attcode" => "",
|
||||
"reconc_keys" => ['description'],
|
||||
"db_table" => "priv_trigger_onstateleave",
|
||||
@@ -537,7 +537,7 @@ class TriggerOnObjectCreate extends TriggerOnObject
|
||||
"category" => "grant_by_profile,core/cmdb,application",
|
||||
"key_type" => "autoincrement",
|
||||
"name_attcode" => "description",
|
||||
"complementary_name_attcode" => ['finalclass', 'complement'],
|
||||
"complementary_name_attcode" => ['finalclass', 'target_class'],
|
||||
"state_attcode" => "",
|
||||
"reconc_keys" => ['description'],
|
||||
"db_table" => "priv_trigger_onobjcreate",
|
||||
@@ -572,7 +572,7 @@ class TriggerOnObjectDelete extends TriggerOnObject
|
||||
"category" => "grant_by_profile,core/cmdb,application",
|
||||
"key_type" => "autoincrement",
|
||||
"name_attcode" => "description",
|
||||
"complementary_name_attcode" => ['finalclass', 'complement'],
|
||||
"complementary_name_attcode" => ['finalclass', 'target_class'],
|
||||
"state_attcode" => "",
|
||||
"reconc_keys" => ['description'],
|
||||
"db_table" => "priv_trigger_onobjdelete",
|
||||
@@ -607,7 +607,7 @@ class TriggerOnObjectUpdate extends TriggerOnObject
|
||||
"category" => "grant_by_profile,core/cmdb,application",
|
||||
"key_type" => "autoincrement",
|
||||
"name_attcode" => "description",
|
||||
"complementary_name_attcode" => ['finalclass', 'complement'],
|
||||
"complementary_name_attcode" => ['finalclass', 'target_class'],
|
||||
"state_attcode" => "",
|
||||
"reconc_keys" => ['description'],
|
||||
"db_table" => "priv_trigger_onobjupdate",
|
||||
@@ -695,7 +695,7 @@ class TriggerOnObjectMention extends TriggerOnObject
|
||||
"category" => "grant_by_profile,core/cmdb,application",
|
||||
"key_type" => "autoincrement",
|
||||
"name_attcode" => "description",
|
||||
"complementary_name_attcode" => ['finalclass', 'complement'],
|
||||
"complementary_name_attcode" => ['finalclass', 'target_class'],
|
||||
"state_attcode" => "",
|
||||
"reconc_keys" => ['description'],
|
||||
"db_table" => "priv_trigger_onobjmention",
|
||||
@@ -773,7 +773,7 @@ class TriggerOnAttributeBlobDownload extends TriggerOnObject
|
||||
"category" => "grant_by_profile,core/cmdb,application",
|
||||
"key_type" => "autoincrement",
|
||||
"name_attcode" => "description",
|
||||
"complementary_name_attcode" => ['finalclass', 'complement'],
|
||||
"complementary_name_attcode" => ['finalclass', 'target_class'],
|
||||
"state_attcode" => "",
|
||||
"reconc_keys" => ['description'],
|
||||
"db_table" => "priv_trigger_onattblobdownload",
|
||||
@@ -852,7 +852,7 @@ class TriggerOnThresholdReached extends TriggerOnObject
|
||||
"category" => "grant_by_profile,core/cmdb,application",
|
||||
"key_type" => "autoincrement",
|
||||
"name_attcode" => "description",
|
||||
"complementary_name_attcode" => ['finalclass', 'complement'],
|
||||
"complementary_name_attcode" => ['finalclass', 'target_class'],
|
||||
"state_attcode" => "",
|
||||
"reconc_keys" => ['description'],
|
||||
"db_table" => "priv_trigger_threshold",
|
||||
|
||||
@@ -404,7 +404,8 @@ class ValueSetObjects extends ValueSetDefinition
|
||||
if (count($aAdditionalField) > 0) {
|
||||
$aArguments = [];
|
||||
foreach ($aAdditionalField as $sAdditionalField) {
|
||||
array_push($aArguments, $oObject->Get($sAdditionalField));
|
||||
//getAsCSV to have user friendly value in text format
|
||||
array_push($aArguments, $oObject->GetAsCSV($sAdditionalField,' ',''));
|
||||
}
|
||||
$aData['additional_field'] = utils::VSprintf($sFormatAdditionalField, $aArguments);
|
||||
} else {
|
||||
|
||||
@@ -24,7 +24,7 @@ class TriggerOnAttachmentCreate extends TriggerOnObject
|
||||
"category" => "grant_by_profile,core/cmdb,application",
|
||||
"key_type" => "autoincrement",
|
||||
"name_attcode" => "description",
|
||||
"complementary_name_attcode" => ['finalclass', 'complement'],
|
||||
"complementary_name_attcode" => ['finalclass', 'target_class'],
|
||||
"state_attcode" => "",
|
||||
"reconc_keys" => ['description'],
|
||||
"db_table" => "priv_trigger_onattcreate",
|
||||
|
||||
@@ -24,7 +24,7 @@ class TriggerOnAttachmentDelete extends TriggerOnObject
|
||||
"category" => "grant_by_profile,core/cmdb,application",
|
||||
"key_type" => "autoincrement",
|
||||
"name_attcode" => "description",
|
||||
"complementary_name_attcode" => ['finalclass', 'complement'],
|
||||
"complementary_name_attcode" => ['finalclass', 'target_class'],
|
||||
"state_attcode" => "",
|
||||
"reconc_keys" => ['description'],
|
||||
"db_table" => "priv_trigger_onattdelete",
|
||||
|
||||
@@ -19,7 +19,7 @@ class TriggerOnAttachmentDownload extends TriggerOnAttributeBlobDownload
|
||||
"category" => "grant_by_profile,core/cmdb,application",
|
||||
"key_type" => "autoincrement",
|
||||
"name_attcode" => "description",
|
||||
"complementary_name_attcode" => ['finalclass', 'complement'],
|
||||
"complementary_name_attcode" => ['finalclass', 'target_class'],
|
||||
"state_attcode" => "",
|
||||
"reconc_keys" => ['description'],
|
||||
"db_table" => "priv_trigger_onattdownload",
|
||||
|
||||
@@ -612,7 +612,7 @@ Dict::Add('CS CZ', 'Czech', 'Čeština', [
|
||||
Dict::Add('CS CZ', 'Czech', 'Čeština', [
|
||||
'Class:Trigger' => 'Triger',
|
||||
'Class:Trigger+' => '',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, %2$s~~',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, class restriction: %2$s~~',
|
||||
'Class:Trigger/Attribute:description' => 'Popis',
|
||||
'Class:Trigger/Attribute:description+' => 'Krátký popis',
|
||||
'Class:Trigger/Attribute:action_list' => 'Spouštěné akce',
|
||||
|
||||
@@ -611,7 +611,7 @@ Dict::Add('DA DA', 'Danish', 'Dansk', [
|
||||
Dict::Add('DA DA', 'Danish', 'Dansk', [
|
||||
'Class:Trigger' => 'Triggere',
|
||||
'Class:Trigger+' => '',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, %2$s~~',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, class restriction: %2$s~~',
|
||||
'Class:Trigger/Attribute:description' => 'Beskrivelse',
|
||||
'Class:Trigger/Attribute:description+' => '',
|
||||
'Class:Trigger/Attribute:action_list' => 'Triggerede handlinger',
|
||||
|
||||
@@ -608,7 +608,7 @@ Dict::Add('DE DE', 'German', 'Deutsch', [
|
||||
Dict::Add('DE DE', 'German', 'Deutsch', [
|
||||
'Class:Trigger' => 'Trigger',
|
||||
'Class:Trigger+' => 'Custom event handler',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, %2$s',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, class restriction: %2$s~~',
|
||||
'Class:Trigger/Attribute:description' => 'Beschreibung',
|
||||
'Class:Trigger/Attribute:description+' => 'Kurzbeschreibung',
|
||||
'Class:Trigger/Attribute:action_list' => 'Verbundene Trigger-Aktionen',
|
||||
|
||||
@@ -705,7 +705,7 @@ Dict::Add('EN US', 'English', 'English', [
|
||||
Dict::Add('EN US', 'English', 'English', [
|
||||
'Class:Trigger' => 'Trigger',
|
||||
'Class:Trigger+' => 'Custom event handler',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, %2$s',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, class restriction: %2$s',
|
||||
'Class:Trigger/Attribute:description' => 'Description',
|
||||
'Class:Trigger/Attribute:description+' => 'Be precise as your users will base their potential unsubscription on this information',
|
||||
'Class:Trigger/Attribute:action_list' => 'Triggered actions',
|
||||
|
||||
@@ -688,7 +688,7 @@ Dict::Add('EN GB', 'British English', 'British English', [
|
||||
Dict::Add('EN GB', 'British English', 'British English', [
|
||||
'Class:Trigger' => 'Trigger',
|
||||
'Class:Trigger+' => 'Custom event handler',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, %2$s',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, class restriction: %2$s~~',
|
||||
'Class:Trigger/Attribute:description' => 'Description',
|
||||
'Class:Trigger/Attribute:description+' => 'Be precise as your users will base their potential unsubscribing on this information',
|
||||
'Class:Trigger/Attribute:action_list' => 'Triggered actions',
|
||||
|
||||
@@ -599,7 +599,7 @@ Dict::Add('ES CR', 'Spanish', 'Español, Castellano', [
|
||||
Dict::Add('ES CR', 'Spanish', 'Español, Castellano', [
|
||||
'Class:Trigger' => 'Disparador',
|
||||
'Class:Trigger+' => 'Disparador',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, %2$s',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, class restriction: %2$s~~',
|
||||
'Class:Trigger/Attribute:description' => 'Descripción',
|
||||
'Class:Trigger/Attribute:description+' => 'Descripción',
|
||||
'Class:Trigger/Attribute:action_list' => 'Acciones',
|
||||
|
||||
@@ -650,7 +650,7 @@ Dict::Add('FR FR', 'French', 'Français', [
|
||||
Dict::Add('FR FR', 'French', 'Français', [
|
||||
'Class:Trigger' => 'Déclencheur',
|
||||
'Class:Trigger+' => '',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, %2$s',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, classe cible : %2$s',
|
||||
'Class:Trigger/Attribute:description' => 'Description',
|
||||
'Class:Trigger/Attribute:description+' => 'Soyez explicite, afin que vos utilisateurs comprennent à quelles notifications précisement ils se désabonnent',
|
||||
'Class:Trigger/Attribute:action_list' => 'Actions déclenchées',
|
||||
|
||||
@@ -606,7 +606,7 @@ Dict::Add('HU HU', 'Hungarian', 'Magyar', [
|
||||
Dict::Add('HU HU', 'Hungarian', 'Magyar', [
|
||||
'Class:Trigger' => 'Eseményindító',
|
||||
'Class:Trigger+' => 'Egyéni eseménykezelés',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, %2$s~~',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, class restriction: %2$s~~',
|
||||
'Class:Trigger/Attribute:description' => 'Leírás',
|
||||
'Class:Trigger/Attribute:description+' => 'Egysoros leírás',
|
||||
'Class:Trigger/Attribute:action_list' => 'Elindított műveletek',
|
||||
|
||||
@@ -606,7 +606,7 @@ Dict::Add('IT IT', 'Italian', 'Italiano', [
|
||||
Dict::Add('IT IT', 'Italian', 'Italiano', [
|
||||
'Class:Trigger' => 'Trigger',
|
||||
'Class:Trigger+' => 'Gestore di eventi personalizzati',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, %2$s',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, class restriction: %2$s~~',
|
||||
'Class:Trigger/Attribute:description' => 'Descrizione',
|
||||
'Class:Trigger/Attribute:description+' => 'Una linea di descrizione',
|
||||
'Class:Trigger/Attribute:action_list' => 'Azioni triggerate',
|
||||
|
||||
@@ -610,7 +610,7 @@ Dict::Add('JA JP', 'Japanese', '日本語', [
|
||||
Dict::Add('JA JP', 'Japanese', '日本語', [
|
||||
'Class:Trigger' => 'トリガー',
|
||||
'Class:Trigger+' => 'カスタムイベントハンドラー',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, %2$s~~',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, class restriction: %2$s~~',
|
||||
'Class:Trigger/Attribute:description' => '説明',
|
||||
'Class:Trigger/Attribute:description+' => '1行の説明',
|
||||
'Class:Trigger/Attribute:action_list' => 'トリガーされたアクション',
|
||||
|
||||
@@ -608,7 +608,7 @@ Dict::Add('NL NL', 'Dutch', 'Nederlands', [
|
||||
Dict::Add('NL NL', 'Dutch', 'Nederlands', [
|
||||
'Class:Trigger' => 'Trigger',
|
||||
'Class:Trigger+' => 'Aanleiding tot het uitvoeren van een actie',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, %2$s',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, toegepast op klasse: %2$s',
|
||||
'Class:Trigger/Attribute:description' => 'Beschrijving',
|
||||
'Class:Trigger/Attribute:description+' => 'Beschrijving in één regel',
|
||||
'Class:Trigger/Attribute:action_list' => 'Getriggerde acties',
|
||||
|
||||
@@ -608,7 +608,7 @@ Dict::Add('PL PL', 'Polish', 'Polski', [
|
||||
Dict::Add('PL PL', 'Polish', 'Polski', [
|
||||
'Class:Trigger' => 'Wyzwalacz',
|
||||
'Class:Trigger+' => 'Niestandardowa obsługa zdarzeń',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, %2$s',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, class restriction: %2$s~~',
|
||||
'Class:Trigger/Attribute:description' => 'Opis',
|
||||
'Class:Trigger/Attribute:description+' => 'jedna linia opisu',
|
||||
'Class:Trigger/Attribute:action_list' => 'Działania wyzwalacza',
|
||||
|
||||
@@ -606,7 +606,7 @@ Dict::Add('PT BR', 'Brazilian', 'Brazilian', [
|
||||
Dict::Add('PT BR', 'Brazilian', 'Brazilian', [
|
||||
'Class:Trigger' => 'Gatilho',
|
||||
'Class:Trigger+' => 'Manipulador de eventos personalizado',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, %2$s~~',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, class restriction: %2$s~~',
|
||||
'Class:Trigger/Attribute:description' => 'Descrição',
|
||||
'Class:Trigger/Attribute:description+' => 'Uma descrição curta',
|
||||
'Class:Trigger/Attribute:action_list' => 'Ações desencadeadas',
|
||||
|
||||
@@ -611,7 +611,7 @@ Dict::Add('RU RU', 'Russian', 'Русский', [
|
||||
Dict::Add('RU RU', 'Russian', 'Русский', [
|
||||
'Class:Trigger' => 'Триггер',
|
||||
'Class:Trigger+' => 'Пользовательский обработчик событий',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, %2$s~~',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, class restriction: %2$s~~',
|
||||
'Class:Trigger/Attribute:description' => 'Описание',
|
||||
'Class:Trigger/Attribute:description+' => 'Описание триггера',
|
||||
'Class:Trigger/Attribute:action_list' => 'Действия триггера',
|
||||
|
||||
@@ -624,7 +624,7 @@ Dict::Add('SK SK', 'Slovak', 'Slovenčina', [
|
||||
Dict::Add('SK SK', 'Slovak', 'Slovenčina', [
|
||||
'Class:Trigger' => 'Spúštač',
|
||||
'Class:Trigger+' => 'Custom event handler~~',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, %2$s~~',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, class restriction: %2$s~~',
|
||||
'Class:Trigger/Attribute:description' => 'Popis',
|
||||
'Class:Trigger/Attribute:description+' => 'Be precise as your users will base their potential unsubscription on this information~~',
|
||||
'Class:Trigger/Attribute:action_list' => 'Spúšťané akcie',
|
||||
|
||||
@@ -611,7 +611,7 @@ Dict::Add('TR TR', 'Turkish', 'Türkçe', [
|
||||
Dict::Add('TR TR', 'Turkish', 'Türkçe', [
|
||||
'Class:Trigger' => 'Tetikleyici',
|
||||
'Class:Trigger+' => 'Özel olay yürütücü',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, %2$s~~',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, class restriction: %2$s~~',
|
||||
'Class:Trigger/Attribute:description' => 'Tanımlama',
|
||||
'Class:Trigger/Attribute:description+' => 'tek satır tanımlama',
|
||||
'Class:Trigger/Attribute:action_list' => 'Tetiklenen işlemler',
|
||||
|
||||
@@ -643,7 +643,7 @@ Dict::Add('ZH CN', 'Chinese', '简体中文', [
|
||||
Dict::Add('ZH CN', 'Chinese', '简体中文', [
|
||||
'Class:Trigger' => '触发器',
|
||||
'Class:Trigger+' => '自定义事件处理',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, %2$s',
|
||||
'Class:Trigger/ComplementaryName' => '%1$s, class restriction: %2$s~~',
|
||||
'Class:Trigger/Attribute:description' => '描述',
|
||||
'Class:Trigger/Attribute:description+' => '简短描述',
|
||||
'Class:Trigger/Attribute:action_list' => '触发的操作',
|
||||
|
||||
@@ -210,7 +210,8 @@ class ObjectRepository
|
||||
$aData['has_additional_field'] = true;
|
||||
$aArguments = [];
|
||||
foreach ($aComplementAttributeSpec[1] as $sAdditionalField) {
|
||||
$aArguments[] = $oDbObject->Get($sAdditionalField);
|
||||
//getAsCSV to have user friendly value in text format
|
||||
$aArguments[] = $oDbObject->GetAsCSV($sAdditionalField,' ','');
|
||||
}
|
||||
$aData['additional_field'] = utils::VSprintf($aComplementAttributeSpec[0], $aArguments);
|
||||
$sAdditionalFieldForHtml = utils::EscapeHtml($aData['additional_field']);
|
||||
|
||||
Reference in New Issue
Block a user