core/libraries/batch/JobHandlers/AttendeesReport.php 1 location
|
@@ 78-85 (lines=8) @@
|
75 |
|
} |
76 |
|
|
77 |
|
|
78 |
|
public function cleanup_job(JobParameters $job_parameters) { |
79 |
|
$this->_file_helper->delete( |
80 |
|
\EEH_File::remove_filename_from_filepath( $job_parameters->extra_datum( 'filepath' ) ), |
81 |
|
true, |
82 |
|
'd' |
83 |
|
); |
84 |
|
return new JobStepResponse( $job_parameters, __( 'Cleaned up temporary file', 'event_espresso' ) ); |
85 |
|
} |
86 |
|
|
87 |
|
public function count_units_to_process() { |
88 |
|
return \EEM_Attendee::instance()->count(); |
core/libraries/batch/JobHandlers/RegistrationsReport.php 1 location
|
@@ 415-422 (lines=8) @@
|
412 |
|
* @param JobParameters $job_parameters |
413 |
|
* @return boolean |
414 |
|
*/ |
415 |
|
public function cleanup_job( JobParameters $job_parameters ){ |
416 |
|
$this->_file_helper->delete( |
417 |
|
\EEH_File::remove_filename_from_filepath( $job_parameters->extra_datum( 'filepath' ) ), |
418 |
|
true, |
419 |
|
'd' |
420 |
|
); |
421 |
|
return new JobStepResponse( $job_parameters, __( 'Cleaned up temporary file', 'event_espresso' ) ); |
422 |
|
} |
423 |
|
} |
424 |
|
|
425 |
|
|