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
|
@@ 387-394 (lines=8) @@
|
384 |
|
* @param JobParameters $job_parameters |
385 |
|
* @return boolean |
386 |
|
*/ |
387 |
|
public function cleanup_job( JobParameters $job_parameters ){ |
388 |
|
$this->_file_helper->delete( |
389 |
|
\EEH_File::remove_filename_from_filepath( $job_parameters->extra_datum( 'filepath' ) ), |
390 |
|
true, |
391 |
|
'd' |
392 |
|
); |
393 |
|
return new JobStepResponse( $job_parameters, __( 'Cleaned up temporary file', 'event_espresso' ) ); |
394 |
|
} |
395 |
|
} |
396 |
|
|
397 |
|
|