| 1 |
<?php |
| 2 |
/** |
| 3 |
* TablePress Exporter Interface |
| 4 |
* |
| 5 |
* @package TablePress |
| 6 |
* @subpackage Export/Import |
| 7 |
* @author Tobias Bäthge |
| 8 |
* @since 3.4.0 |
| 9 |
*/ |
| 10 |
|
| 11 |
declare(strict_types=1); |
| 12 |
|
| 13 |
namespace TablePress\Export; |
| 14 |
|
| 15 |
// Prohibit direct script loading. |
| 16 |
defined( 'ABSPATH' ) || die( 'No direct script access allowed!' ); |
| 17 |
|
| 18 |
/** |
| 19 |
* TablePress Exporter Interface |
| 20 |
* |
| 21 |
* @package TablePress |
| 22 |
* @subpackage Export/Import |
| 23 |
* @since 3.4.0 |
| 24 |
*/ |
| 25 |
interface Exporter_Interface { |
| 26 |
|
| 27 |
/** |
| 28 |
* Exports a table. |
| 29 |
* |
| 30 |
* @since 3.4.0 |
| 31 |
* |
| 32 |
* @param array<string, mixed> $table Table to be exported. |
| 33 |
* @param array<string, mixed> $options Format-specific options for the export. |
| 34 |
* @return string Exported table output. |
| 35 |
*/ |
| 36 |
public function export( array $table, array $options = array() ): string; |
| 37 |
|
| 38 |
} // interface Exporter_Interface |
| 39 |
|