private function getClientBrowserOperatingSystem(\DeviceDetector\DeviceDetector $deviceDetectorClass, $userAgent)
    {
        $aReturn                 = $deviceDetectorClass->getOs();
        $aReturn['architecture'] = $this->getArchitectureFromUserAgent($userAgent, 'os');
        $operatingSystem         = new \DeviceDetector\Parser\OperatingSystem();
        $osFamily                = $operatingSystem->getOsFamily($deviceDetectorClass->getOs('short_name'));
        $aReturn['family']       = ($osFamily !== false ? $osFamily : 'Unknown');
        ksort($aReturn);
        return $aReturn;
    }
private function getClientBrowserOperatingSystem(\DeviceDetector\DeviceDetector $deviceDetectorClass, $userAgent)
    {
        $aReturn                 = $deviceDetectorClass->getOs();
        $aReturn['architecture'] = $this->getArchitectureFromUserAgent($userAgent, 'os');
        $operatingSystem         = new \DeviceDetector\Parser\OperatingSystem();
        $osFamily                = $operatingSystem->getOsFamily($deviceDetectorClass->getOs('short_name'));
        $aReturn['family']       = ($osFamily !== false ? $osFamily : 'Unknown');
        ksort($aReturn);
        return $aReturn;
    }
private function getClientBrowserOperatingSystem ( \ DeviceDetector \ DeviceDetector $ deviceDetectorClass , $ userAgent ) { $ aReturn = $ deviceDetectorClass -> getOs ( ) ; $ aReturn [ 'architecture' ] = $ this -> getArchitectureFromUserAgent ( $ userAgent , 'os' ) ; $ operatingSystem = new \ DeviceDetector \ Parser \ OperatingSystem ( ) ; $ osFamily = $ operatingSystem -> getOsFamily ( $ deviceDetectorClass -> getOs ( 'short_name' ) ) ; $ aReturn [ 'family' ] = ( $ osFamily !== false ? $ osFamily : 'Unknown' ) ; ksort ( $ aReturn ) ; return $ aReturn ; }
Returns client operating system details from client browser

@param class $deviceDetectorClass
@param string $userAgent
@return array
Returns client operating system details from client browser