@@ 210-215 (lines=6) @@ | ||
207 | /** |
|
208 | * Receives ajax calls for continuing a job |
|
209 | */ |
|
210 | public function batch_continue() { |
|
211 | $job_id = sanitize_text_field( $_REQUEST[ 'job_id' ] ); |
|
212 | $batch_runner = new EventEspressoBatchRequest\BatchRequestProcessor(); |
|
213 | $response_obj = $batch_runner->continue_job( $job_id); |
|
214 | $this->_return_json( $response_obj->to_array() ); |
|
215 | } |
|
216 | ||
217 | /** |
|
218 | * Receives the ajax call to cleanup a job |
|
@@ 221-226 (lines=6) @@ | ||
218 | * Receives the ajax call to cleanup a job |
|
219 | * @return type |
|
220 | */ |
|
221 | public function batch_cleanup() { |
|
222 | $job_id = sanitize_text_field( $_REQUEST[ 'job_id' ] ); |
|
223 | $batch_runner = new EventEspressoBatchRequest\BatchRequestProcessor(); |
|
224 | $response_obj = $batch_runner->cleanup_job( $job_id ); |
|
225 | $this->_return_json( $response_obj->to_array() ); |
|
226 | } |
|
227 | ||
228 | ||
229 | /** |