phpUserAgentStringParser::filterYahoo PHP Method

filterYahoo() protected method

Yahoo bot has a special user agent string
protected filterYahoo ( array &$userAgent )
$userAgent array
    protected function filterYahoo(array &$userAgent)
    {
        if (null === $userAgent['browser_name'] && strpos($userAgent['string'], 'yahoo! slurp')) {
            $userAgent['browser_name'] = 'yahoobot';
        }
    }