PHP Class WC_Report_Coupon_Usage

Inheritance: extends WC_Admin_Report
Show file Open project: woocommerce/woocommerce

Public Properties

Property Type Description
$chart_colours array Chart colours.
$coupon_codes array Coupon codes.

Public Methods

Method Description
__construct ( ) Constructor.
coupons_widget ( ) Output coupons 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.
output_report ( ) Output the report.

Method Details

__construct() public method

Constructor.
public __construct ( )

coupons_widget() public method

Output coupons widget.
public coupons_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

output_report() public method

Output the report.
public output_report ( )

Property Details

$chart_colours public property

Chart colours.
public array $chart_colours
return array

$coupon_codes public property

Coupon codes.
public array $coupon_codes
return array