PHP Class WC_Report_Sales_By_Product

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

Public Properties

Property Type Description
$chart_colours array Chart colours.
$product_ids array Product ids.
$product_ids_titles array Product ids with titles.

Public Methods

Method Description
__construct ( ) Constructor.
current_filters ( ) Output current filters.
get_chart_legend ( ) : array Get the legend for the main chart sidebar.
get_chart_widgets ( ) : array Get chart widgets.
get_export_button ( ) Output an export link.
get_main_chart ( ) : string Get the main chart.
output_report ( ) Output the report.
products_widget ( ) Output products widget.

Method Details

__construct() public method

Constructor.
public __construct ( )

current_filters() public method

Output current filters.
public current_filters ( )

get_chart_legend() public method

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

get_chart_widgets() public method

Get chart widgets.
public get_chart_widgets ( ) : 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

output_report() public method

Output the report.
public output_report ( )

products_widget() public method

Output products widget.
public products_widget ( )

Property Details

$chart_colours public_oe property

Chart colours.
public array $chart_colours
return array

$product_ids public_oe property

Product ids.
public array $product_ids
return array

$product_ids_titles public_oe property

Product ids with titles.
public array $product_ids_titles
return array