protected function checkBrowserBlackBerry()
    {
        $found = false;

        //Tablet OS check
        if ($this->checkSimpleBrowserUA('RIM Tablet OS', $this->_agent, self::BROWSER_TABLET_OS, true)) {
            return true;
        }

        //Version 6, 7 & 10 check (versions 8 & 9 does not exists)
        if ($this->checkBrowserUAWithVersion(array('BlackBerry', 'BB10'), $this->_agent, self::BROWSER_BLACKBERRY, true)) {
            if ($this->getVersion() == self::VERSION_UNKNOWN) {
                $found = true;
            } else {
                return true;
            }
        }

        //Version 4.2 to 5.0 check
        if ($this->checkSimpleBrowserUA('BlackBerry', $this->_agent, self::BROWSER_BLACKBERRY, true, false, '/', false)) {
            if ($this->getVersion() == self::VERSION_UNKNOWN) {
                $found = true;
            } else {
                return true;
            }
        }

        return $found;
    }
protected function checkBrowserBlackBerry()
    {
        $found = false;

        //Tablet OS check
        if ($this->checkSimpleBrowserUA('RIM Tablet OS', $this->_agent, self::BROWSER_TABLET_OS, true)) {
            return true;
        }

        //Version 6, 7 & 10 check (versions 8 & 9 does not exists)
        if ($this->checkBrowserUAWithVersion(array('BlackBerry', 'BB10'), $this->_agent, self::BROWSER_BLACKBERRY, true)) {
            if ($this->getVersion() == self::VERSION_UNKNOWN) {
                $found = true;
            } else {
                return true;
            }
        }

        //Version 4.2 to 5.0 check
        if ($this->checkSimpleBrowserUA('BlackBerry', $this->_agent, self::BROWSER_BLACKBERRY, true, false, '/', false)) {
            if ($this->getVersion() == self::VERSION_UNKNOWN) {
                $found = true;
            } else {
                return true;
            }
        }

        return $found;
    }
protected function checkBrowserBlackBerry ( ) { $ found = false ; //Tablet OS check if ( $ this -> checkSimpleBrowserUA ( 'RIM Tablet OS' , $ this -> _agent , self :: BROWSER_TABLET_OS , true ) ) { return true ; } //Version 6, 7 & 10 check (versions 8 & 9 does not exists) if ( $ this -> checkBrowserUAWithVersion ( array ( 'BlackBerry' , 'BB10' ) , $ this -> _agent , self :: BROWSER_BLACKBERRY , true ) ) { if ( $ this -> getVersion ( ) == self :: VERSION_UNKNOWN ) { $ found = true ; } else { return true ; } } //Version 4.2 to 5.0 check if ( $ this -> checkSimpleBrowserUA ( 'BlackBerry' , $ this -> _agent , self :: BROWSER_BLACKBERRY , true , false , '/' , false ) ) { if ( $ this -> getVersion ( ) == self :: VERSION_UNKNOWN ) { $ found = true ; } else { return true ; } } return $ found ; }
Determine if the browser is the BlackBerry browser or not.
@access protected
@link http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/How-to-detect-the-BlackBerry-Browser/ta-p/559862
@return boolean Returns true if the browser is the BlackBerry browser, false otherwise.
Determine if the browser is the BlackBerry browser or not .