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