DeviceDetector.php
public function isDesktop()
    {
        $osShort = $this->getOs('short_name');
        if (empty($osShort) || self::UNKNOWN == $osShort) {
            return false;
        }

        // Check for browsers available for mobile devices only
        if ($this->usesMobileBrowser()) {
            return false;
        }

        $decodedFamily = OperatingSystem::getOsFamily($osShort);

        return in_array($decodedFamily, self::$desktopOsArray);
    }
public function isDesktop()
    {
        $osShort = $this->getOs('short_name');
        if (empty($osShort) || self::UNKNOWN == $osShort) {
            return false;
        }

        // Check for browsers available for mobile devices only
        if ($this->usesMobileBrowser()) {
            return false;
        }

        $decodedFamily = OperatingSystem::getOsFamily($osShort);

        return in_array($decodedFamily, self::$desktopOsArray);
    }
public function isDesktop ( ) { $ osShort = $ this -> getOs ( 'short_name' ) ; if ( empty ( $ osShort ) || self :: UNKNOWN == $ osShort ) { return false ; } // Check for browsers available for mobile devices only if ( $ this -> usesMobileBrowser ( ) ) { return false ; } $ decodedFamily = OperatingSystem :: getOsFamily ( $ osShort ) ; return in_array ( $ decodedFamily , self :: $ desktopOsArray ) ; }
Returns if the parsed UA was identified as desktop device
Desktop devices are all devices with an unknown type that are running a desktop os

@see self::$desktopOsArray

@return bool
Returns if the parsed UA was identified as desktop device Desktop devices are all devices with an unknown type that are running a desktop os