@@ 205-208 (lines=4) @@ | ||
202 | foreach ($registration_rows as $reg_row) { |
|
203 | if (is_array($reg_row)) { |
|
204 | $reg_csv_array = array(); |
|
205 | if ( ! $event_id) { |
|
206 | //get the event's name and Id |
|
207 | $reg_csv_array[__('Event', 'event_espresso')] = sprintf(__('%1$s (%2$s)', 'event_espresso'), |
|
208 | \EEH_Export::prepare_value_from_db_for_display(\EEM_Event::instance(), 'EVT_name', |
|
209 | $reg_row['Event_CPT.post_title']), $reg_row['Event_CPT.ID']); |
|
210 | } |
|
211 | $is_primary_reg = $reg_row['Registration.REG_count'] == '1' ? true : false; |
|
@@ 336-344 (lines=9) @@ | ||
333 | )); |
|
334 | //now fill out the questions THEY answered |
|
335 | foreach ($answers as $answer_row) { |
|
336 | if ($answer_row['Question.QST_ID']) { |
|
337 | $question_label = \EEH_Export::prepare_value_from_db_for_display(\EEM_Question::instance(), |
|
338 | 'QST_admin_label', $answer_row['Question.QST_admin_label']); |
|
339 | } else { |
|
340 | $question_label = sprintf(__('Question $s', 'event_espresso'), $answer_row['Answer.QST_ID']); |
|
341 | } |
|
342 | if (isset($answer_row['Question.QST_type']) |
|
343 | && $answer_row['Question.QST_type'] == \EEM_Question::QST_type_state |
|
344 | ) { |
|
345 | $reg_csv_array[$question_label] = \EEM_State::instance() |
|
346 | ->get_state_name_by_ID($answer_row['Answer.ANS_value']); |
|
347 | } else { |