@@ 452-462 (lines=11) @@ | ||
449 | //add attendee columns |
|
450 | foreach($att_fields_to_include as $att_field_name){ |
|
451 | $field_obj = EEM_Attendee::instance()->field_settings_for($att_field_name); |
|
452 | if( $reg_row[ 'Attendee_CPT.ID' ]){ |
|
453 | if($att_field_name == 'STA_ID'){ |
|
454 | $value = EEM_State::instance()->get_var( array( array( 'STA_ID' => $reg_row[ 'Attendee_Meta.STA_ID' ] ) ), 'STA_name' ); |
|
455 | }elseif($att_field_name == 'CNT_ISO'){ |
|
456 | $value = EEM_Country::instance()->get_var( array( array( 'CNT_ISO' => $reg_row[ 'Attendee_Meta.CNT_ISO' ] ) ), 'CNT_name' ); |
|
457 | }else{ |
|
458 | $value = $this->_prepare_value_from_db_for_display( EEM_Attendee::instance(), $att_field_name, $reg_row[ $field_obj->get_qualified_column() ] ); |
|
459 | } |
|
460 | }else{ |
|
461 | $value = ''; |
|
462 | } |
|
463 | ||
464 | $reg_csv_array[$this->_get_column_name_for_field($field_obj)] = $value; |
|
465 | } |
@@ 341-351 (lines=11) @@ | ||
338 | //add attendee columns |
|
339 | foreach ($att_fields_to_include as $att_field_name) { |
|
340 | $field_obj = \EEM_Attendee::instance()->field_settings_for($att_field_name); |
|
341 | if ($reg_row['Attendee_CPT.ID']) { |
|
342 | if ($att_field_name == 'STA_ID') { |
|
343 | $value = \EEM_State::instance() |
|
344 | ->get_var(array(array('STA_ID' => $reg_row['Attendee_Meta.STA_ID'])), |
|
345 | 'STA_name'); |
|
346 | } elseif ($att_field_name == 'CNT_ISO') { |
|
347 | $value = \EEM_Country::instance() |
|
348 | ->get_var(array(array('CNT_ISO' => $reg_row['Attendee_Meta.CNT_ISO'])), |
|
349 | 'CNT_name'); |
|
350 | } else { |
|
351 | $value = \EEH_Export::prepare_value_from_db_for_display(\EEM_Attendee::instance(), |
|
352 | $att_field_name, $reg_row[$field_obj->get_qualified_column()]); |
|
353 | } |
|
354 | } else { |