Submit
Path:
~
/
/
usr
/
local
/
sitepad
/
editor
/
site-data
/
plugins
/
kkart-pro
/
packages
/
kkart-admin
/
src
/
API
/
Reports
/
Taxes
/
File Content:
Query.php
<?php /** * Class for parameter-based Taxes Report querying * * Example usage: * $args = array( * 'before' => '2018-07-19 00:00:00', * 'after' => '2018-07-05 00:00:00', * 'page' => 2, * 'taxes' => array(1,2,3) * ); * $report = new \Automattic\Kkart\Admin\API\Reports\Taxes\Query( $args ); * $mydata = $report->get_data(); */ namespace Automattic\Kkart\Admin\API\Reports\Taxes; defined( 'ABSPATH' ) || exit; use \Automattic\Kkart\Admin\API\Reports\Query as ReportsQuery; /** * API\Reports\Taxes\Query */ class Query extends ReportsQuery { /** * Valid fields for Taxes report. * * @return array */ protected function get_default_query_vars() { return array(); } /** * Get product data based on the current query vars. * * @return array */ public function get_data() { $args = apply_filters( 'kkart_analytics_taxes_query_args', $this->get_query_vars() ); $data_store = \KKART_Data_Store::load( 'report-taxes' ); $results = $data_store->get_data( $args ); return apply_filters( 'kkart_analytics_taxes_select_query', $results, $args ); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
Stats
---
0755
Controller.php
9903 bytes
0644
DataStore.php
11174 bytes
0644
Query.php
1163 bytes
0644
N4ST4R_ID | Naxtarrr