Controller
REST API Reports Performance indicators controller class.
Description Description
Source Source
File: packages/woocommerce-admin/src/API/Reports/PerformanceIndicators/Controller.php
Methods Methods
- __construct — Constructor.
- format_data_value — Format the data returned from the API for given stats.
- get_active_jetpack_modules — Get active Jetpack modules.
- get_allowed_items — Returns a list of allowed performance indicators.
- get_analytics_report_data — Get analytics report data and endpoints.
- get_collection_params — Get the query params for collections.
- get_indicator_data — Get information such as allowed stats, stat labels, and endpoint data from stats reports.
- get_item_schema — Get the Report's schema, conforming to JSON Schema.
- get_items — Get all reports.
- get_jetpack_modules_data — Get active Jetpack modules and endpoints.
- get_public_allowed_item_schema — Get schema for the list of allowed performance indicators.
- get_stats_data — Get report stats data, avoiding duplicate requests for stats that use the same endpoint.
- get_stats_parts — Returns the endpoint part of a stat request (prefix) and the actual stat total we want.
- prepare_item_for_response — Prepare a report object for serialization.
- prepare_links — Prepare links for the request.
- prepare_reports_query — Maps query arguments from the REST request.
- register_routes — Register the routes for reports.
- set_active_jetpack_modules — Set active Jetpack modules.
- sort — Sorts the list of stats. Sorted by custom arrangement.