Make available field retrieval be generated through an object

phpcs-errors:221 phpunit-status:successful phpstan-errors:677
This commit is contained in:
Joshua Ramon Enslin 2020-10-31 01:28:03 +01:00 committed by Stefan Rohde-Enslin
parent 3ae471675d
commit 733241be47
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
6 changed files with 1660 additions and 1626 deletions

File diff suppressed because it is too large Load Diff

View File

@ -15,6 +15,7 @@ const TL_FILE_DIRS = [
]; ];
const AUTOLOAD_DIRS = [ const AUTOLOAD_DIRS = [
__DIR__ . "/../classes",
__DIR__ . "/../classes/MDTlLoader/src", __DIR__ . "/../classes/MDTlLoader/src",
__DIR__ . "/../classes/MD_STD", __DIR__ . "/../classes/MD_STD",
__DIR__ . "/../classes/MDAllowedValueSets/src", __DIR__ . "/../classes/MDAllowedValueSets/src",

View File

@ -31,7 +31,8 @@ if (!empty($_POST) and !empty($_POST['selectedFields'])) {
} }
else $selectionActive = false; else $selectionActive = false;
require __DIR__ . "/../values/availableFields.php"; $fieldsGetter = new CsvxmlAvailableFields($lang);
$availableFields = $fieldsGetter->getFields();
$line1 = $line2 = $line3 = $line4 = []; $line1 = $line2 = $line3 = $line4 = [];

View File

@ -57,7 +57,8 @@ echo '
</div> </div>
'; ';
require __DIR__ . "/../values/availableFields.php"; $fieldsGetter = new CsvxmlAvailableFields($lang);
$availableFields = $fieldsGetter->getFields();
$tooltips = []; $tooltips = [];
foreach ($availableFields as $headline => $fields) { foreach ($availableFields as $headline => $fields) {

View File

@ -25,7 +25,8 @@ $csv_datei = MD_STD::realpath(__DIR__ . '/../csv/' . $filename);
// Get allowed values * $fieldNoMultiplicator // Get allowed values * $fieldNoMultiplicator
$fieldNoMultiplicator = 10; $fieldNoMultiplicator = 10;
require __DIR__ . "/../values/availableFields.php"; $fieldsGetter = new CsvxmlAvailableFields($lang);
$availableFields = $fieldsGetter->getFields();
$allowed = $eventpart = $eventpartsure = $fieldsWithDependency = $fieldsWithAllowedValueSet = []; $allowed = $eventpart = $eventpartsure = $fieldsWithDependency = $fieldsWithAllowedValueSet = [];

File diff suppressed because it is too large Load Diff