NukeViet\Client\Browser::getPlatform PHP Метод

getPlatform() публичный Метод

The name of the platform. All return types are from the class contants
public getPlatform ( ) : string
Результат string Name of the browser
    public function getPlatform()
    {
        $names = array('unknown' => 'Unknown', 'win' => 'Windows', 'win10' => 'Windows 10', 'win8' => 'Windows 8', 'win7' => 'Windows 7', 'win2003' => 'Windows 2003', 'winvista' => 'Windows Vista', 'wince' => 'Windows CE', 'winxp' => 'Windows XP', 'apple' => 'Apple', 'linux' => 'Linux', 'os2' => 'OS/2', 'beos' => 'BeOS', 'iphone' => 'iPhone', 'ipod' => 'iPod', 'ipad' => 'iPad', 'blackberry' => 'BlackBerry', 'nokia' => 'Nokia', 'freebsd' => 'FreeBSD', 'openbsd' => 'OpenBSD', 'netbsd' => 'NetBSD', 'sunos' => 'SunOS', 'opensolaris' => 'OpenSolaris', 'android' => 'Android', 'irix' => 'Irix', 'palm' => 'Palm');
        return isset($names[$this->_platform]) ? $names[$this->_platform] : $names['unknown'];
    }