PHP Class WC_Report_Sales_By_Category

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

Public Properties

Property Type Description
$chart_colours array Chart colours.
$show_categories array Categories ids.

Public Methods

Method Description
__construct ( ) Constructor.
category_widget ( ) Output category widget.
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.
get_products_in_category ( integer $category_id ) : array Get all product ids in a category (and its children).
output_report ( ) Output the report.

Method Details

__construct() public method

Constructor.
public __construct ( )

category_widget() public method

Output category widget.
public category_widget ( )

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

get_products_in_category() public method

Get all product ids in a category (and its children).
public get_products_in_category ( integer $category_id ) : array
$category_id integer
return array

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

$show_categories public_oe property

Categories ids.
public array $show_categories
return array