Autogenerated rest of array in availableFields as far as possible

This commit is contained in:
Joshua Ramon Enslin 2019-08-30 18:52:18 +02:00 committed by Stefan Rohde-Enslin
parent bb2f3a6d40
commit e1c7313ca0
2 changed files with 4665 additions and 2 deletions

View File

@ -691,4 +691,29 @@ array ('illustrated_where_sure2', 'n', ''),
array ('illustrated_annotation2', 'n', ''),
);
return;
foreach ($allowed as $values) {
for ($i = 2; $i < 10; $i++) {
if (empty($values[$i])) $values[$i] = "";
}
echo '
"' . $values[0] . '" => [';
if ($values[1] == "y") echo '
"required" => true,';
else echo '
"required" => false,';
echo '
"allowedValues" => \'' . $values[3] . '\',';
if ($values[4] !== 'none' and !empty($values[4])) echo '
"dependsOn" => [\'' . $values[4] . '\'],';
echo '
"remark" => \'' . $values[5] . '\',
"name_human_readable" => $object_basis[\'inventory_number\'],
"explica" => $object_basis[\'inv_explica\'],
],';
}

File diff suppressed because it is too large Load Diff