extractFromUserAgent example

/** * Sets all the standard features extracted from the User Agent chain and $this->_server * vars * * @return void */
    protected function _getDefaultFeatures()
    {
        $server = array();

        // gets info from user agent chain         $uaExtract = $this->extractFromUserAgent($this->getUserAgent());

        if (is_array($uaExtract)) {
            foreach ($uaExtract as $key => $info) {
                $this->setFeature($key$info, 'product_info');
            }
        }

        if (isset($uaExtract['browser_name'])) {
            $this->_browser = $uaExtract['browser_name'];
        }
        if (isset($uaExtract['browser_version'])) {
            
Home | Imprint | This part of the site doesn't use cookies.