Nessuna descrizione

PrefetchProcess.php 801B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*******************************************************************************
  3. * Copyright (c) 2019, Code Atlantic LLC
  4. ******************************************************************************/
  5. if ( ! defined( 'ABSPATH' ) ) {
  6. exit;
  7. }
  8. /**
  9. * Second-level interface for registering a batch process that leverages
  10. * pre-fetch and data storage.
  11. *
  12. * @since 1.7.0
  13. */
  14. interface PUM_Interface_Batch_PrefetchProcess extends PUM_Interface_Batch_Process {
  15. /**
  16. * Initializes the batch process.
  17. *
  18. * This is the point where any relevant data should be initialized for use by the processor methods.
  19. *
  20. * @param null|mixed $data
  21. *
  22. * @return void
  23. */
  24. public function init( $data = null );
  25. /**
  26. * Pre-fetches data to speed up processing.
  27. */
  28. public function pre_fetch();
  29. }