No Description

Exporter.php 904B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /*******************************************************************************
  3. * Copyright (c) 2019, Code Atlantic LLC
  4. ******************************************************************************/
  5. if ( ! defined( 'ABSPATH' ) ) {
  6. exit;
  7. }
  8. /**
  9. * Promise for structuring exporters.
  10. *
  11. * @since 1.7.0
  12. */
  13. interface PUM_Interface_Batch_Exporter {
  14. /**
  15. * Determines whether the current user can perform an export.
  16. *
  17. * @return bool Whether the current user can perform an export.
  18. */
  19. public function can_export();
  20. /**
  21. * Handles sending appropriate headers depending on the type of export.
  22. *
  23. * @return void
  24. */
  25. public function headers();
  26. /**
  27. * Retrieves the data for export.
  28. *
  29. * @return array[] Multi-dimensional array of data for export.
  30. */
  31. public function get_data();
  32. /**
  33. * Performs the export process.
  34. *
  35. * @return void
  36. */
  37. public function export();
  38. }