public function getClientBrowserDetails($returnType = ['Browser', 'Device', 'OS'], $tmpFolder = null)
    {
        $userAgent      = $this->getUserAgentByCommonLib();
        $devDetectClass = new \DeviceDetector\DeviceDetector($userAgent);
        if (is_null($tmpFolder)) {
            $tmpFolder = '../../tmp/DoctrineCache/';
        }
        $devDetectClass->setCache(new \Doctrine\Common\Cache\PhpFileCache($tmpFolder));
        $devDetectClass->discardBotInformation();
        $devDetectClass->parse();
        if ($devDetectClass->isBot()) {
            return [
                'Bot' => $devDetectClass->getBot(),
            ];
        }
        return $this->getClientBrowserDetailsNonBot($devDetectClass, $userAgent, $returnType);
    }
public function getClientBrowserDetails($returnType = ['Browser', 'Device', 'OS'], $tmpFolder = null)
    {
        $userAgent      = $this->getUserAgentByCommonLib();
        $devDetectClass = new \DeviceDetector\DeviceDetector($userAgent);
        if (is_null($tmpFolder)) {
            $tmpFolder = '../../tmp/DoctrineCache/';
        }
        $devDetectClass->setCache(new \Doctrine\Common\Cache\PhpFileCache($tmpFolder));
        $devDetectClass->discardBotInformation();
        $devDetectClass->parse();
        if ($devDetectClass->isBot()) {
            return [
                'Bot' => $devDetectClass->getBot(),
            ];
        }
        return $this->getClientBrowserDetailsNonBot($devDetectClass, $userAgent, $returnType);
    }
public function getClientBrowserDetails ( $ returnType = [ 'Browser' , 'Device' , 'OS' ] , $ tmpFolder = null ) { $ userAgent = $ this -> getUserAgentByCommonLib ( ) ; $ devDetectClass = new \ DeviceDetector \ DeviceDetector ( $ userAgent ) ; if ( is_null ( $ tmpFolder ) ) { $ tmpFolder = '../../tmp/DoctrineCache/' ; } $ devDetectClass -> setCache ( new \ Doctrine \ Common \ Cache \ PhpFileCache ( $ tmpFolder ) ) ; $ devDetectClass -> discardBotInformation ( ) ; $ devDetectClass -> parse ( ) ; if ( $ devDetectClass -> isBot ( ) ) { return [ 'Bot' => $ devDetectClass -> getBot ( ) , ] ; } return $ this -> getClientBrowserDetailsNonBot ( $ devDetectClass , $ userAgent , $ returnType ) ; }
Provides various details about browser based on user agent

@param array $returnType
@return array
Provides various details about browser based on user agent