Categories
4 weeks ago
Coupons
4 weeks ago
Customers
2 months ago
Downloads
1 year ago
Export
3 years ago
Import
3 years ago
Orders
4 weeks ago
PerformanceIndicators
9 months ago
Products
4 weeks ago
Revenue
3 months ago
Stock
4 months ago
Taxes
4 weeks ago
Variations
4 weeks ago
Cache.php
4 years ago
Controller.php
11 months ago
DataStore.php
4 weeks ago
DataStoreInterface.php
4 years ago
ExportableInterface.php
4 years ago
ExportableTraits.php
4 years ago
FilteredGetDataTrait.php
1 year ago
GenericController.php
1 year ago
GenericQuery.php
1 year ago
GenericStatsController.php
1 year ago
OrderAwareControllerTrait.php
1 year ago
ParameterException.php
4 years ago
Query.php
1 year ago
Segmenter.php
1 year ago
SqlQuery.php
3 years ago
StatsDataStoreTrait.php
1 year ago
TimeInterval.php
2 years ago
ExportableInterface.php
34 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Reports Exportable Controller Interface |
| 4 | */ |
| 5 | |
| 6 | namespace Automattic\WooCommerce\Admin\API\Reports; |
| 7 | |
| 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | exit; |
| 10 | } |
| 11 | |
| 12 | /** |
| 13 | * WooCommerce Reports exportable controller interface. |
| 14 | * |
| 15 | * @since 3.5.0 |
| 16 | */ |
| 17 | interface ExportableInterface { |
| 18 | |
| 19 | /** |
| 20 | * Get the column names for export. |
| 21 | * |
| 22 | * @return array Key value pair of Column ID => Label. |
| 23 | */ |
| 24 | public function get_export_columns(); |
| 25 | |
| 26 | /** |
| 27 | * Get the column values for export. |
| 28 | * |
| 29 | * @param array $item Single report item/row. |
| 30 | * @return array Key value pair of Column ID => Value. |
| 31 | */ |
| 32 | public function prepare_item_for_export( $item ); |
| 33 | } |
| 34 |