Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vimazeno
mobipaleo
Commits
b7536799
Commit
b7536799
authored
Nov 19, 2021
by
Vincent Mazenod
Browse files
get label rather colonne number in csv output
parent
4e07d528
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Controller/JobDatasheetController.php
View file @
b7536799
...
...
@@ -104,8 +104,14 @@ class JobDatasheetController extends AbstractController
);
foreach
(
$results
as
$line
)
{
$columns
=
[];
foreach
(
$line
[
'columns'
]
as
$column
)
{
preg_match_all
(
'/([\d]+)([\+|\-])/'
,
$column
,
$record
);
$columns
[]
=
$job
->
getColumns
()[(
int
)
$record
[
1
][
0
]
-
1
]
.
$record
[
2
][
0
];
}
fputcsv
(
$fp
,
array_merge
(
$
line
[
'
columns
'
]
,
[
$line
[
'frequency'
]])
$fp
,
array_merge
(
$columns
,
[
$line
[
'frequency'
]])
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment