Current Path: > home > codekrsu > > cuddlebuds.lk > wp-content > plugins > woocommerce > src > Admin > API > Reports
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
Categories | Directory | - | - | |
Coupons | Directory | - | - | |
Customers | Directory | - | - | |
Downloads | Directory | - | - | |
Export | Directory | - | - | |
Import | Directory | - | - | |
Orders | Directory | - | - | |
PerformanceIndicators | Directory | - | - | |
Products | Directory | - | - | |
Revenue | Directory | - | - | |
Stock | Directory | - | - | |
Taxes | Directory | - | - | |
Variations | Directory | - | - | |
Cache.php | File | 1515 bytes | July 06 2022 00:23:10. | |
Controller.php | File | 6793 bytes | November 14 2024 01:17:00. | |
DataStore.php | File | 55975 bytes | August 27 2024 23:04:44. | |
DataStoreInterface.php | File | 401 bytes | April 20 2022 06:50:54. | |
ExportableInterface.php | File | 624 bytes | April 20 2022 06:50:54. | |
ExportableTraits.php | File | 624 bytes | April 20 2022 06:50:54. | |
FilteredGetDataTrait.php | File | 1589 bytes | August 27 2024 23:04:44. | |
GenericController.php | File | 10119 bytes | September 23 2024 20:44:04. | |
GenericQuery.php | File | 2635 bytes | August 27 2024 23:04:44. | |
GenericStatsController.php | File | 8186 bytes | May 12 2025 21:07:28. | |
OrderAwareControllerTrait.php | File | 3825 bytes | May 12 2025 21:07:28. | |
ParameterException.php | File | 326 bytes | April 20 2022 06:50:54. | |
Query.php | File | 1446 bytes | September 23 2024 20:44:04. | |
Segmenter.php | File | 26030 bytes | January 21 2025 18:53:44. | |
SqlQuery.php | File | 5278 bytes | January 25 2023 03:19:12. | |
StatsDataStoreTrait.php | File | 4871 bytes | September 23 2024 20:44:04. | |
TimeInterval.php | File | 24035 bytes | February 27 2024 18:59:46. |
<?php declare( strict_types = 1); namespace Automattic\WooCommerce\Admin\API\Reports; defined( 'ABSPATH' ) || exit; use WC_Data_Store; /** * A generic class for a report-specific query to be used in Analytics. * * Example usage: * <pre><code class="language-php">$args = array( * 'before' => '2018-07-19 00:00:00', * 'after' => '2018-07-05 00:00:00', * 'page' => 2, * ); * $report = new GenericQuery( $args, 'coupons' ); * $mydata = $report->get_data(); * </code></pre> * * It uses the name provided in the class property or in the constructor call to load the `report-{name}` data store. * * It's used by the {@see GenericController GenericController}. * * @since 9.3.0 */ class GenericQuery extends \WC_Object_Query { /** * Specific query name. * Will be used to load the `report-{name}` data store, * and to call `woocommerce_analytics_{snake_case(name)}_*` filters. * * @var string */ protected $name; /** * Create a new query. * * @param array $args Criteria to query on in a format similar to WP_Query. * @param string $name Query name. * @extends WC_Object_Query::_construct */ public function __construct( $args, $name = null ) { $this->name = $name ?? $this->name; return parent::__construct( $args ); // phpcs:ignore Universal.CodeAnalysis.ConstructorDestructorReturn.ReturnValueFound } /** * Valid fields for Products report. * * @return array */ protected function get_default_query_vars() { return array(); } /** * Get data from `report-{$name}` store, based on the current query vars. * Filters query vars through `woocommerce_analytics_{snake_case(name)}_query_args` filter. * Filters results through `woocommerce_analytics_{snake_case(name)}_select_query` filter. * * @return mixed filtered results from the data store. */ public function get_data() { $snake_name = str_replace( '-', '_', $this->name ); /** * Filter query args given for the report. * * @since 9.3.0 * * @param array $query_args Query args. */ $args = apply_filters( "woocommerce_analytics_{$snake_name}_query_args", $this->get_query_vars() ); $data_store = \WC_Data_Store::load( "report-{$this->name}" ); $results = $data_store->get_data( $args ); /** * Filter report query results. * * @since 9.3.0 * * @param stdClass|WP_Error $results Results from the data store. * @param array $args Query args used to get the data (potentially filtered). */ return apply_filters( "woocommerce_analytics_{$snake_name}_select_query", $results, $args ); } }
SILENT KILLER Tool