using oop instead of array access
This commit is contained in:
1 parent
014b723939
commit
69d10cf8d0
2 files changed
+12
-12
No files matched your search
+5
-5
@@ -53,10 +53,10 @@
|
||||
|
||||
if ($i !== 0) $tLine1[] = "";
|
||||
$tLine2[] = $fieldName;
|
||||
$tLine3[] = $field['name_human_readable'];
|
||||
# $tLine4[] = $field['remark'];
|
||||
if (!empty($field['allowedValues'])) $tLine4[] = end($field['allowedValues']);
|
||||
else $tLine4[] = $field['name_human_readable'];
|
||||
$tLine3[] = $field->name_human_readable;
|
||||
# $tLine4[] = $field->remark;
|
||||
if (!empty($field->allowedValues)) $tLine4[] = end($field->allowedValues);
|
||||
else $tLine4[] = $field->name_human_readable;
|
||||
|
||||
$i++;
|
||||
}
|
||||
@@ -76,5 +76,5 @@
|
||||
header("Content-Disposition: attachment; filename=csvxml_museum-digital_template-{$lang}.csv");
|
||||
|
||||
for ($i = 2; $i <= 4; $i++) {
|
||||
echo mb_convert_encoding('"' . implode("\";\"", ${"line$i"}) . '"' . PHP_EOL, 'utf-16', 'utf-8');;
|
||||
echo mb_convert_encoding('"' . implode("\";\"", ${"line$i"}) . '"' . PHP_EOL, 'utf-16', 'utf-8');
|
||||
}
|
||||
Reference in new issue
Block a user