PHP Class WC_Report_Sales_By_Category

Author: WooThemes
Inheritance: extends WC_Admin_Report
Afficher le fichier Open project: woocommerce/woocommerce

Méthodes publiques

Свойство Type Description
$chart_colours array Chart colours.
$show_categories array Categories ids.

Méthodes publiques

Méthode 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 méthode

Constructor.
public __construct ( )

category_widget() public méthode

Output category widget.
public category_widget ( )

get_chart_legend() public méthode

Get the legend for the main chart sidebar.
public get_chart_legend ( ) : array
Résultat array

get_chart_widgets() public méthode

Get chart widgets.
public get_chart_widgets ( ) : array
Résultat array

get_export_button() public méthode

Output an export link.
public get_export_button ( )

get_main_chart() public méthode

Get the main chart.
public get_main_chart ( ) : string
Résultat string

get_products_in_category() public méthode

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

output_report() public méthode

Output the report.
public output_report ( )

Property Details

$chart_colours public_oe property

Chart colours.
public array $chart_colours
Résultat array

$show_categories public_oe property

Categories ids.
public array $show_categories
Résultat array