| @@ 257-260 (lines=4) @@ | ||
| 254 | foreach ($registration_rows as $reg_row) { |
|
| 255 | if (is_array($reg_row)) { |
|
| 256 | $reg_csv_array = array(); |
|
| 257 | if (! $event_id) { |
|
| 258 | // get the event's name and Id |
|
| 259 | $reg_csv_array[ __('Event', 'event_espresso') ] = sprintf( |
|
| 260 | __('%1$s (%2$s)', 'event_espresso'), |
|
| 261 | \EEH_Export::prepare_value_from_db_for_display( |
|
| 262 | \EEM_Event::instance(), |
|
| 263 | 'EVT_name', |
|
| @@ 442-450 (lines=9) @@ | ||
| 439 | )); |
|
| 440 | // now fill out the questions THEY answered |
|
| 441 | foreach ($answers as $answer_row) { |
|
| 442 | if ($answer_row['Question.QST_ID']) { |
|
| 443 | $question_label = \EEH_Export::prepare_value_from_db_for_display( |
|
| 444 | \EEM_Question::instance(), |
|
| 445 | 'QST_admin_label', |
|
| 446 | $answer_row['Question.QST_admin_label'] |
|
| 447 | ); |
|
| 448 | } else { |
|
| 449 | $question_label = sprintf(__('Question $s', 'event_espresso'), $answer_row['Answer.QST_ID']); |
|
| 450 | } |
|
| 451 | if (isset($answer_row['Question.QST_type']) |
|
| 452 | && $answer_row['Question.QST_type'] == \EEM_Question::QST_type_state |
|
| 453 | ) { |
|