src/Zend/Http/UserAgent.php
protected function _match($deviceClass)
    {
        // Validate device class
        $r = new ReflectionClass($deviceClass);
        if (!$r->implementsInterface('Zend_Http_UserAgent_Device')) {
            throw new Zend_Http_UserAgent_Exception(sprintf(
                'Invalid device class provided ("%s"); must implement Zend_Http_UserAgent_Device',
                $deviceClass
            ));
        }

        $userAgent = $this->getUserAgent();

        // Call match method on device class
        return call_user_func(
            array($deviceClass, 'match'),
            $userAgent,
            $this->getServer()
        );
    }
protected function _match($deviceClass)
    {
        // Validate device class
        $r = new ReflectionClass($deviceClass);
        if (!$r->implementsInterface('Zend_Http_UserAgent_Device')) {
            throw new Zend_Http_UserAgent_Exception(sprintf(
                'Invalid device class provided ("%s"); must implement Zend_Http_UserAgent_Device',
                $deviceClass
            ));
        }

        $userAgent = $this->getUserAgent();

        // Call match method on device class
        return call_user_func(
            array($deviceClass, 'match'),
            $userAgent,
            $this->getServer()
        );
    }
protected function _match ( $ deviceClass ) { // Validate device class $ r = new ReflectionClass ( $ deviceClass ) ; if ( ! $ r -> implementsInterface ( 'Zend_Http_UserAgent_Device' ) ) { throw new Zend_Http_UserAgent_Exception ( sprintf ( 'Invalid device class provided ("%s"); must implement Zend_Http_UserAgent_Device' , $ deviceClass ) ) ; } $ userAgent = $ this -> getUserAgent ( ) ; // Call match method on device class return call_user_func ( array ( $ deviceClass , 'match' ) , $ userAgent , $ this -> getServer ( ) ) ; }
Comparison of the UserAgent chain and browser signatures.

The comparison is case-insensitive : the browser signatures must be in lower
case

@param  string $deviceClass Name of class against which a match will be attempted
@return bool
Comparison of the UserAgent chain and browser signatures .