HEX
Server: Apache/2.4.37 (CentOS Stream) OpenSSL/1.1.1k
System: Linux ysnet.com.tw 4.18.0-553.5.1.el8.x86_64 #1 SMP Tue May 21 05:46:01 UTC 2024 x86_64
User: test (521)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /var/www/test/wp-content/plugins/wp-statistics/includes/class-wp-statistics-user-agent.php
<?php

namespace WP_STATISTICS;

use WP_Statistics\Service\Analytics\DeviceDetection\DeviceHelper;

/**
 * @deprecated This class will be deprecated soon, use WP_Statistics\Service\Analytics\UserAgent instead.
 */
class UserAgent
{
    /**
     * Get All Browser List For Detecting
     *
     * @param bool $all
     * @area utility
     * @return array|mixed
     */
    public static function BrowserList($all = true)
    {
        _deprecated_function('BrowserList', '14.11', 'DeviceHelper::getBrowserList');

        return DeviceHelper::getBrowserList($all);
    }

    /**
     * Returns browser logo.
     *
     * @param string $browser Browser name.
     * @param string $browser Browser name.
     *
     * @return  string              Logo URL, or URL of an unknown browser icon.
     */
    public static function getBrowserLogo($browser)
    {
        _deprecated_function('getBrowserLogo', '14.11', 'DeviceHelper::getBrowserLogo');

        return DeviceHelper::getBrowserLogo($browser);
    }

    /**
     * Returns platform/OS logo.
     *
     * @param string $platform Platform name.
     *
     * @return  string              Logo URL, or URL of an unknown browser icon.
     */
    public static function getPlatformLogo($platform)
    {
        _deprecated_function('getPlatformLogo', '14.11', 'DeviceHelper::getPlatformLogo');

        return DeviceHelper::getPlatformLogo($platform);
    }
}