diff --git a/Classes/Domain/Model/Client.php b/Classes/Domain/Model/Client.php
index 9ee2d71..494afbd 100644
--- a/Classes/Domain/Model/Client.php
+++ b/Classes/Domain/Model/Client.php
@@ -91,6 +91,11 @@ class Client extends AbstractEntity
*/
protected $outdatedExtensions = 0;
+ /**
+ * @var string
+ */
+ protected $applicationContext = '';
+
/**
* @var string
*/
@@ -466,6 +471,22 @@ public function setOutdatedExtensions($outdatedExtensions)
$this->outdatedExtensions = $outdatedExtensions;
}
+ /**
+ * @return string
+ */
+ public function getApplicationContext()
+ {
+ return $this->applicationContext;
+ }
+
+ /**
+ * @param string $applicationContext
+ */
+ public function setApplicationContext($applicationContext)
+ {
+ $this->applicationContext = $applicationContext;
+ }
+
/**
* Returns the errorMessage
*
diff --git a/Classes/Service/Import/ClientImport.php b/Classes/Service/Import/ClientImport.php
index 182f11f..01e82e6 100644
--- a/Classes/Service/Import/ClientImport.php
+++ b/Classes/Service/Import/ClientImport.php
@@ -116,6 +116,7 @@ protected function importSingleClient(array $row)
'disk_free_space' => $json['core']['diskFreeSpace'],
'core' => $this->getUsedCore($json['core']['typo3Version']),
'extensions' => $this->handleExtensionRelations($row['uid'], (array)$json['extensions']),
+ 'application_context' => $json['core']['applicationContext'],
];
$this->addExtraData($json, $update, 'info');
diff --git a/Configuration/TCA/tx_t3monitoring_domain_model_client.php b/Configuration/TCA/tx_t3monitoring_domain_model_client.php
index 3243260..0f06817 100644
--- a/Configuration/TCA/tx_t3monitoring_domain_model_client.php
+++ b/Configuration/TCA/tx_t3monitoring_domain_model_client.php
@@ -20,7 +20,7 @@
'1' => [
'showitem' => '
--div--;General,title, --palette--;;paletteDomain,email,sla,tag,
- --div--;Readonly information,last_successful_import,error_message,core, --palette--;;paletteVersions, --palette--;;paletteDiskSpace,extensions,
+ --div--;Readonly information,last_successful_import,error_message, --palette--;;paletteCore, --palette--;;paletteVersions, --palette--;;paletteDiskSpace,extensions,
insecure_core, outdated_core, insecure_extensions, outdated_extensions,
--div--;Extra,extra_info,extra_warning,extra_danger,
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
@@ -29,6 +29,7 @@
],
],
'palettes' => [
+ 'paletteCore' => ['showitem' => 'core, application_context'],
'paletteDomain' => ['showitem' => 'domain, secret, --linebreak--, basic_auth_username, basic_auth_password, hidden'],
'paletteVersions' => ['showitem' => 'php_version, mysql_version'],
'paletteDiskSpace' => ['showitem' => 'disk_total_space, disk_free_space'],
@@ -206,6 +207,16 @@
'eval' => 'int'
],
],
+ 'application_context' => [
+ 'exclude' => true,
+ 'label' => 'LLL:EXT:t3monitoring/Resources/Private/Language/locallang.xlf:tx_t3monitoring_domain_model_client.application_context',
+ 'config' => [
+ 'readOnly' => true,
+ 'type' => 'input',
+ 'size' => 5,
+ 'eval' => 'trim'
+ ],
+ ],
'error_message' => [
'exclude' => true,
'label' => 'LLL:EXT:t3monitoring/Resources/Private/Language/locallang.xlf:tx_t3monitoring_domain_model_client.error_message',
diff --git a/Resources/Private/Language/de.locallang.xlf b/Resources/Private/Language/de.locallang.xlf
index f6cc7ad..39d0e65 100644
--- a/Resources/Private/Language/de.locallang.xlf
+++ b/Resources/Private/Language/de.locallang.xlf
@@ -55,6 +55,10 @@
Outdated Extensions
Veraltete Extensions
+
+ Application Context
+ Anwendungskontext
+
Error Message
Fehlermeldung
diff --git a/Resources/Private/Language/locallang.xlf b/Resources/Private/Language/locallang.xlf
index 0f0bbe8..688db46 100644
--- a/Resources/Private/Language/locallang.xlf
+++ b/Resources/Private/Language/locallang.xlf
@@ -57,6 +57,9 @@
Outdated Extensions
+
+ Application Context
+
Error Message
diff --git a/ext_tables.sql b/ext_tables.sql
index 5ce55ae..74973bb 100644
--- a/ext_tables.sql
+++ b/ext_tables.sql
@@ -21,6 +21,7 @@ CREATE TABLE tx_t3monitoring_domain_model_client (
insecure_extensions int(11) DEFAULT '0' NOT NULL,
outdated_extensions int(11) DEFAULT '0' NOT NULL,
error_message varchar(255) DEFAULT '' NOT NULL,
+ application_context varchar(255) DEFAULT '' NOT NULL,
extra_info text NOT NULL,
extra_warning text NOT NULL,
extra_danger text NOT NULL,