Class Wcap_Product_Report_Table
The Product Report Page will display the total amount of the abandoned products as well as the total recovered amount for the products.
- WP_List_Table
- Wcap_Product_Report_Table
Author: Tyche Softwares
Since: 2.3.7
Located at includes/classes/class_wcap_product_report_table.php
Methods summary
public
|
|
public
|
#
wcap_product_report_prepare_items( )
It will prepare the list of the abandoned products, columns and other data. |
public
array
|
|
public
array
|
#
product_report_sortable_columns( )
We can mention on which column we need the sorting. Here we are sorting on Product name, Number of Times abandoned, Number of Times Recovered. |
public
String
|
#
wacp_product_report_data( )
It will get the abandoned product data from database and calculate the number of abandoned & recovered products. |
public
sorted
|
#
wcap_class_abandoned_number_asc( array $value1, array $value2 )
It will sort the alphabetically ascending on the Number of Times Abandoned. |
public
sorted
|
#
wcap_class_abandoned_number_dsc( array $value1, array $value2 )
It will sort the alphabetically descending on the Number of Times Abandoned. |
public
sorted
|
#
wcap_class_recover_number_asc( array $value1, array $value2 )
It will sort the alphabetically ascending on the Number of Times Recovered. |
public
sorted
|
#
wcap_class_recover_number_dsc( array $value1, array $value2 )
It will sort the alphabetically descending on the Number of Times Recovered. |
public
sorted
|
#
wcap_class_product_name_asc( array $value1, array $value2 )
It will sort the alphabetically ascending on the Product Name. |
public
sorted
|
#
wcap_class_product_name_dsc( array $value1, array $value2 )
It will sort the alphabetically descending on the Product Name. |
public
string
|
#
column_default( array $wcap_product_report, stirng $column_name )
It will display the data for the Product Reports tab. |