core/db_classes/EE_Export.class.php 1 location
|
@@ 501-508 (lines=8) @@
|
| 498 |
|
} |
| 499 |
|
$registrations_csv_ready_array [] = $reg_csv_array; |
| 500 |
|
} |
| 501 |
|
if( $event_id ){ |
| 502 |
|
$event_slug = EEM_Event::instance()->get_var( array( array( 'EVT_ID' => $event_id ) ), 'EVT_slug' ); |
| 503 |
|
if( ! $event_slug ) { |
| 504 |
|
$event_slug = __( 'unknown', 'event_espresso' ); |
| 505 |
|
} |
| 506 |
|
}else{ |
| 507 |
|
$event_slug = __( 'all', 'event_espresso' ); |
| 508 |
|
} |
| 509 |
|
$filename = sprintf( "registrations-for-%s", $event_slug ); |
| 510 |
|
|
| 511 |
|
$handle = $this->EE_CSV->begin_sending_csv( $filename); |
core/libraries/batch/JobHandlers/RegistrationsReport.php 1 location
|
@@ 79-86 (lines=8) @@
|
| 76 |
|
* @return string |
| 77 |
|
*/ |
| 78 |
|
protected function get_filename_from_event( $event_id ) { |
| 79 |
|
if( $event_id ){ |
| 80 |
|
$event_slug = \EEM_Event::instance()->get_var( array( array( 'EVT_ID' => $event_id ) ), 'EVT_slug' ); |
| 81 |
|
if( ! $event_slug ) { |
| 82 |
|
$event_slug = __( 'unknown', 'event_espresso' ); |
| 83 |
|
} |
| 84 |
|
}else{ |
| 85 |
|
$event_slug = __( 'all', 'event_espresso' ); |
| 86 |
|
} |
| 87 |
|
return sprintf( "registrations-for-%s.csv", $event_slug ); |
| 88 |
|
} |
| 89 |
|
|