| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/ravel.network/public/wp-content/plugins/independent-analytics/IAWP/ |
Upload File : |
<?php
namespace IAWP;
/** @internal */
class Query
{
public const CAMPAIGN_URLS = 'campaign_urls';
public const CAMPAIGNS = 'campaigns';
public const REFERRER_GROUPS = 'referrer_groups';
public const REFERRERS = 'referrers';
public const RESOURCES = 'resources';
public const VIEWS = 'views';
public const VISITORS = 'visitors';
public const VISITORS_TMP = 'visitors_tmp';
// Used in DB v7 migration
public const VISITORS_1_16_ARCHIVE = 'visitors_1_16_archive';
// Used in DB v7 migration
public const SESSIONS = 'sessions';
public const WC_ORDERS = 'wc_orders';
public const ORDERS = 'orders';
public const CITIES = 'cities';
public const COUNTRIES = 'countries';
public const DEVICES = 'devices';
public const DEVICE_TYPES = 'device_types';
public const DEVICE_OSS = 'device_oss';
public const DEVICE_BROWSERS = 'device_browsers';
public const REPORTS = 'reports';
public const FORMS = 'forms';
public const FORM_SUBMISSIONS = 'form_submissions';
/**
* Safe way to get the name of a table
*
* @param string $name
*
* @return string|null
*/
public static function get_table_name(string $name) : ?string
{
global $wpdb;
$prefix = $wpdb->prefix;
$reflection = new \ReflectionClass(static::class);
$constants = $reflection->getConstants();
if (\in_array($name, $constants)) {
return $prefix . 'independent_analytics_' . $name;
} else {
return null;
}
}
}