@@ 288-294 (lines=7) @@ | ||
285 | /** |
|
286 | * Receives ajax calls for continuing a job |
|
287 | */ |
|
288 | public function batch_continue() |
|
289 | { |
|
290 | $job_id = sanitize_text_field($_REQUEST['job_id']); |
|
291 | $batch_runner = $this->getLoader()->getShared('EventEspressoBatchRequest\BatchRequestProcessor'); |
|
292 | $response_obj = $batch_runner->continue_job($job_id); |
|
293 | $this->_return_json($response_obj->to_array()); |
|
294 | } |
|
295 | ||
296 | /** |
|
297 | * Receives the ajax call to cleanup a job |
|
@@ 301-307 (lines=7) @@ | ||
298 | * |
|
299 | * @return type |
|
300 | */ |
|
301 | public function batch_cleanup() |
|
302 | { |
|
303 | $job_id = sanitize_text_field($_REQUEST['job_id']); |
|
304 | $batch_runner = $this->getLoader()->getShared('EventEspressoBatchRequest\BatchRequestProcessor'); |
|
305 | $response_obj = $batch_runner->cleanup_job($job_id); |
|
306 | $this->_return_json($response_obj->to_array()); |
|
307 | } |
|
308 | ||
309 | ||
310 | /** |