PHP Class WC_Report_Sales_By_Date

Author: WooThemes
Inheritance: extends WC_Admin_Report
Exibir arquivo Open project: woocommerce/woocommerce Class Usage Examples

Public Properties

Property Type Description
$chart_colours array Chart colours.

Public Methods

Method Description
get_chart_legend ( ) : array Get the legend for the main chart sidebar.
get_export_button ( ) Output an export link.
get_main_chart ( ) : string Get the main chart.
get_report_data ( ) : stdClass Get report data.
output_report ( ) Output the report.

Private Methods

Method Description
query_report_data ( ) Get all data needed for this report and store in the class.
round_chart_totals ( string $amount ) : string Round our totals correctly.

Method Details

get_chart_legend() public method

Get the legend for the main chart sidebar.
public get_chart_legend ( ) : array
return array

get_export_button() public method

Output an export link.
public get_export_button ( )

get_main_chart() public method

Get the main chart.
public get_main_chart ( ) : string
return string

get_report_data() public method

Get report data.
public get_report_data ( ) : stdClass
return stdClass

output_report() public method

Output the report.
public output_report ( )

Property Details

$chart_colours public_oe property

Chart colours.
public array $chart_colours
return array