No Description

Exporter.php 913B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /*******************************************************************************
  3. * Copyright (c) 2019, Code Atlantic LLC
  4. ******************************************************************************/
  5. if ( ! defined( 'ABSPATH' ) ) {
  6. exit;
  7. }
  8. /**
  9. * Promise for structuring CSV exporters.
  10. *
  11. * @since 1.7.0
  12. */
  13. interface PUM_Interface_CSV_Exporter extends PUM_Interface_Batch_Exporter {
  14. /**
  15. * Sets the CSV columns.
  16. *
  17. * @return array<string,string> CSV columns.
  18. */
  19. public function csv_cols();
  20. /**
  21. * Retrieves the CSV columns array.
  22. *
  23. * Alias for csv_cols(), usually used to implement a filter on the return.
  24. *
  25. * @return array<string,string> CSV columns.
  26. */
  27. public function get_csv_cols();
  28. /**
  29. * Outputs the CSV columns.
  30. *
  31. * @return void
  32. */
  33. public function csv_cols_out();
  34. /**
  35. * Outputs the CSV rows.
  36. *
  37. * @return void
  38. */
  39. public function csv_rows_out();
  40. }