protected function isUserAgentExcluded()
    {
        $excludedAgents = $this->getAttributes('excluded_user_agents', 'global_excluded_user_agents');

        if (!empty($excludedAgents)) {
            foreach ($excludedAgents as $excludedUserAgent) {
                // if the excluded user agent string part is in this visit's user agent, this visit should be excluded
                if (stripos($this->userAgent, $excludedUserAgent) !== false) {
                    return true;
                }
            }
        }

        return false;
    }
protected function isUserAgentExcluded()
    {
        $excludedAgents = $this->getAttributes('excluded_user_agents', 'global_excluded_user_agents');

        if (!empty($excludedAgents)) {
            foreach ($excludedAgents as $excludedUserAgent) {
                // if the excluded user agent string part is in this visit's user agent, this visit should be excluded
                if (stripos($this->userAgent, $excludedUserAgent) !== false) {
                    return true;
                }
            }
        }

        return false;
    }
protected function isUserAgentExcluded ( ) { $ excludedAgents = $ this -> getAttributes ( 'excluded_user_agents' , 'global_excluded_user_agents' ) ; if ( ! empty ( $ excludedAgents ) ) { foreach ( $ excludedAgents as $ excludedUserAgent ) { // if the excluded user agent string part is in this visit's user agent, this visit should be excluded if ( stripos ( $ this -> userAgent , $ excludedUserAgent ) !== false ) { return true ; } } } return false ; }
Returns true if the specified user agent should be excluded for the current site or not.

Visits whose user agent string contains one of the excluded_user_agents strings for the
site being tracked (or one of the global strings) will be excluded.

@internal param string $this ->userAgent The user agent string.
@return bool
Returns true if the specified user agent should be excluded for the current site or not .