@@ 481-485 (lines=5) @@ | ||
478 | }else{ |
|
479 | $question_label = sprintf( __( 'Question $s', 'event_espresso' ), $answer_row[ 'Answer.QST_ID' ] ); |
|
480 | } |
|
481 | if( isset( $answer_row[ 'Question.QST_type'] ) && $answer_row[ 'Question.QST_type' ] == EEM_Question::QST_type_state ) { |
|
482 | $reg_csv_array[ $question_label ] = EEM_State::instance()->get_state_name_by_ID( $answer_row[ 'Answer.ANS_value' ] ); |
|
483 | } else { |
|
484 | $reg_csv_array[ $question_label ] = $this->_prepare_value_from_db_for_display( EEM_Answer::instance(), 'ANS_value', $answer_row[ 'Answer.ANS_value' ] ); |
|
485 | } |
|
486 | } |
|
487 | $registrations_csv_ready_array[] = apply_filters( 'FHEE__EE_Export__report_registrations__reg_csv_array', $reg_csv_array, $reg_row ); |
|
488 | } |
@@ 334-346 (lines=13) @@ | ||
331 | } else { |
|
332 | $question_label = sprintf( __( 'Question $s', 'event_espresso' ), $answer_row[ 'Answer.QST_ID' ] ); |
|
333 | } |
|
334 | if ( isset( $answer_row[ 'Question.QST_type' ] ) |
|
335 | && $answer_row[ 'Question.QST_type' ] == \EEM_Question::QST_type_state |
|
336 | ) { |
|
337 | $reg_csv_array[ $question_label ] = \EEM_State::instance()->get_state_name_by_ID( |
|
338 | $answer_row[ 'Answer.ANS_value' ] |
|
339 | ); |
|
340 | } else { |
|
341 | $reg_csv_array[ $question_label ] = \EEH_Export::prepare_value_from_db_for_display( |
|
342 | \EEM_Answer::instance(), |
|
343 | 'ANS_value', |
|
344 | $answer_row[ 'Answer.ANS_value' ] |
|
345 | ); |
|
346 | } |
|
347 | } |
|
348 | $registrations_csv_ready_array[] = apply_filters( |
|
349 | 'FHEE__EE_Export__report_registrations__reg_csv_array', |