| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- /**
- * Order Customers Report Class - Specific implementation for order customers list report
- *
- * @package StudiouWCCustomReports
- */
- if (!defined('ABSPATH')) {
- exit;
- }
- class StudiouWC_Order_Customers_Report {
- private $db_manager;
- private $data;
- public function __construct($db_manager, $data) {
- $this->db_manager = $db_manager;
- $this->data = $data;
- }
- public function get_report_data() {
- return $this->db_manager->get_order_customers_list(
- $this->data->get_date_from(),
- $this->data->get_date_to(),
- $this->data->get_statuses(),
- $this->data->get_per_page(),
- $this->data->get_paged(),
- $this->data->get_orderby(),
- $this->data->get_order()
- );
- }
- public function get_total_items() {
- return $this->db_manager->get_order_customers_total_items(
- $this->data->get_date_from(),
- $this->data->get_date_to(),
- $this->data->get_statuses()
- );
- }
- public function get_export_data() {
- return $this->db_manager->get_order_customers_list(
- $this->data->get_date_from(),
- $this->data->get_date_to(),
- $this->data->get_statuses(),
- 999999,
- 1,
- $this->data->get_orderby(),
- $this->data->get_order()
- );
- }
- }
|