| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- /*******************************************************************************
- * Copyright (c) 2019, Code Atlantic LLC
- ******************************************************************************/
- if ( ! defined( 'ABSPATH' ) ) {
- exit;
- }
- /**
- * Promise for structuring exporters.
- *
- * @since 1.7.0
- */
- interface PUM_Interface_Batch_Exporter {
- /**
- * Determines whether the current user can perform an export.
- *
- * @return bool Whether the current user can perform an export.
- */
- public function can_export();
- /**
- * Handles sending appropriate headers depending on the type of export.
- *
- * @return void
- */
- public function headers();
- /**
- * Retrieves the data for export.
- *
- * @return array[] Multi-dimensional array of data for export.
- */
- public function get_data();
- /**
- * Performs the export process.
- *
- * @return void
- */
- public function export();
- }
|