Make available field retrieval be generated through an object
phpcs-errors:221 phpunit-status:successful phpstan-errors:677
This commit is contained in:
parent
3ae471675d
commit
733241be47
1653
classes/CsvxmlAvailableFields.php
Normal file
1653
classes/CsvxmlAvailableFields.php
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -15,6 +15,7 @@ const TL_FILE_DIRS = [
|
|||
];
|
||||
|
||||
const AUTOLOAD_DIRS = [
|
||||
__DIR__ . "/../classes",
|
||||
__DIR__ . "/../classes/MDTlLoader/src",
|
||||
__DIR__ . "/../classes/MD_STD",
|
||||
__DIR__ . "/../classes/MDAllowedValueSets/src",
|
||||
|
|
|
@ -31,7 +31,8 @@ if (!empty($_POST) and !empty($_POST['selectedFields'])) {
|
|||
}
|
||||
else $selectionActive = false;
|
||||
|
||||
require __DIR__ . "/../values/availableFields.php";
|
||||
$fieldsGetter = new CsvxmlAvailableFields($lang);
|
||||
$availableFields = $fieldsGetter->getFields();
|
||||
|
||||
$line1 = $line2 = $line3 = $line4 = [];
|
||||
|
||||
|
|
|
@ -57,7 +57,8 @@ echo '
|
|||
</div>
|
||||
';
|
||||
|
||||
require __DIR__ . "/../values/availableFields.php";
|
||||
$fieldsGetter = new CsvxmlAvailableFields($lang);
|
||||
$availableFields = $fieldsGetter->getFields();
|
||||
|
||||
$tooltips = [];
|
||||
foreach ($availableFields as $headline => $fields) {
|
||||
|
|
|
@ -25,7 +25,8 @@ $csv_datei = MD_STD::realpath(__DIR__ . '/../csv/' . $filename);
|
|||
|
||||
// Get allowed values * $fieldNoMultiplicator
|
||||
$fieldNoMultiplicator = 10;
|
||||
require __DIR__ . "/../values/availableFields.php";
|
||||
$fieldsGetter = new CsvxmlAvailableFields($lang);
|
||||
$availableFields = $fieldsGetter->getFields();
|
||||
|
||||
$allowed = $eventpart = $eventpartsure = $fieldsWithDependency = $fieldsWithAllowedValueSet = [];
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user