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