@@ 446-456 (lines=11) @@ | ||
443 | //add attendee columns |
|
444 | foreach($att_fields_to_include as $att_field_name){ |
|
445 | $field_obj = EEM_Attendee::instance()->field_settings_for($att_field_name); |
|
446 | if( $reg_row[ 'Attendee_CPT.ID' ]){ |
|
447 | if($att_field_name == 'STA_ID'){ |
|
448 | $value = EEM_State::instance()->get_var( array( array( 'STA_ID' => $reg_row[ 'Attendee_Meta.STA_ID' ] ) ), 'STA_name' ); |
|
449 | }elseif($att_field_name == 'CNT_ISO'){ |
|
450 | $value = EEM_Country::instance()->get_var( array( array( 'CNT_ISO' => $reg_row[ 'Attendee_Meta.CNT_ISO' ] ) ), 'CNT_name' ); |
|
451 | }else{ |
|
452 | $value = $this->_prepare_value_from_db_for_display( EEM_Attendee::instance(), $att_field_name, $reg_row[ $field_obj->get_qualified_column() ] ); |
|
453 | } |
|
454 | }else{ |
|
455 | $value = ''; |
|
456 | } |
|
457 | ||
458 | $reg_csv_array[$this->_get_column_name_for_field($field_obj)] = $value; |
|
459 | } |
@@ 292-302 (lines=11) @@ | ||
289 | //add attendee columns |
|
290 | foreach($att_fields_to_include as $att_field_name){ |
|
291 | $field_obj = \EEM_Attendee::instance()->field_settings_for($att_field_name); |
|
292 | if( $reg_row[ 'Attendee_CPT.ID' ]){ |
|
293 | if($att_field_name == 'STA_ID'){ |
|
294 | $value = \EEM_State::instance()->get_var( array( array( 'STA_ID' => $reg_row[ 'Attendee_Meta.STA_ID' ] ) ), 'STA_name' ); |
|
295 | }elseif($att_field_name == 'CNT_ISO'){ |
|
296 | $value = \EEM_Country::instance()->get_var( array( array( 'CNT_ISO' => $reg_row[ 'Attendee_Meta.CNT_ISO' ] ) ), 'CNT_name' ); |
|
297 | }else{ |
|
298 | $value = \EEH_Export::prepare_value_from_db_for_display( \EEM_Attendee::instance(), $att_field_name, $reg_row[ $field_obj->get_qualified_column() ] ); |
|
299 | } |
|
300 | }else{ |
|
301 | $value = ''; |
|
302 | } |
|
303 | ||
304 | $reg_csv_array[ \EEH_Export::get_column_name_for_field($field_obj) ] = $value; |
|
305 | } |