Нет описания

Importer.php 770B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /*******************************************************************************
  3. * Copyright (c) 2019, Code Atlantic LLC
  4. ******************************************************************************/
  5. if ( ! defined( 'ABSPATH' ) ) {
  6. exit;
  7. }
  8. /**
  9. * Promise for structuring importers.
  10. *
  11. * @since 1.7.0
  12. */
  13. interface PUM_Interface_Batch_Importer {
  14. /**
  15. * Determines whether the current user can perform an import.
  16. *
  17. * @return bool Whether the current user can perform an import.
  18. */
  19. public function can_import();
  20. /**
  21. * Prepares the data for import.
  22. *
  23. * @return array[] Multi-dimensional array of data for import.
  24. */
  25. public function get_data();
  26. /**
  27. * Performs the import process.
  28. *
  29. * @return void
  30. */
  31. public function import();
  32. }