public static function checkBrowserBlackBerry()
    {
        if (stripos(self::$userAgentString, 'blackberry') !== false) {
            if (stripos(self::$userAgentString, 'Version/') !== false) {
                $aresult = explode('Version/', self::$userAgentString);
                if (isset($aresult[1])) {
                    $aversion = explode(' ', $aresult[1]);
                    self::$browser->setVersion($aversion[0]);
                }
            } else {
                $aresult = explode('/', stristr(self::$userAgentString, 'BlackBerry'));
                if (isset($aresult[1])) {
                    $aversion = explode(' ', $aresult[1]);
                    self::$browser->setVersion($aversion[0]);
                }
            }
            self::$browser->setName(Browser::BLACKBERRY);

            return true;
        } elseif (stripos(self::$userAgentString, 'BB10') !== false) {
            $aresult = explode('Version/10.', self::$userAgentString);
            if (isset($aresult[1])) {
                $aversion = explode(' ', $aresult[1]);
                self::$browser->setVersion('10.' . $aversion[0]);
            }
            self::$browser->setName(Browser::BLACKBERRY);
            return true;
        }

        return false;
    }
public static function checkBrowserBlackBerry()
    {
        if (stripos(self::$userAgentString, 'blackberry') !== false) {
            if (stripos(self::$userAgentString, 'Version/') !== false) {
                $aresult = explode('Version/', self::$userAgentString);
                if (isset($aresult[1])) {
                    $aversion = explode(' ', $aresult[1]);
                    self::$browser->setVersion($aversion[0]);
                }
            } else {
                $aresult = explode('/', stristr(self::$userAgentString, 'BlackBerry'));
                if (isset($aresult[1])) {
                    $aversion = explode(' ', $aresult[1]);
                    self::$browser->setVersion($aversion[0]);
                }
            }
            self::$browser->setName(Browser::BLACKBERRY);

            return true;
        } elseif (stripos(self::$userAgentString, 'BB10') !== false) {
            $aresult = explode('Version/10.', self::$userAgentString);
            if (isset($aresult[1])) {
                $aversion = explode(' ', $aresult[1]);
                self::$browser->setVersion('10.' . $aversion[0]);
            }
            self::$browser->setName(Browser::BLACKBERRY);
            return true;
        }

        return false;
    }
public static function checkBrowserBlackBerry ( ) { if ( stripos ( self :: $ userAgentString , 'blackberry' ) !== false ) { if ( stripos ( self :: $ userAgentString , 'Version/' ) !== false ) { $ aresult = explode ( 'Version/' , self :: $ userAgentString ) ; if ( isset ( $ aresult [ 1 ] ) ) { $ aversion = explode ( ' ' , $ aresult [ 1 ] ) ; self :: $ browser -> setVersion ( $ aversion [ 0 ] ) ; } } else { $ aresult = explode ( '/' , stristr ( self :: $ userAgentString , 'BlackBerry' ) ) ; if ( isset ( $ aresult [ 1 ] ) ) { $ aversion = explode ( ' ' , $ aresult [ 1 ] ) ; self :: $ browser -> setVersion ( $ aversion [ 0 ] ) ; } } self :: $ browser -> setName ( Browser :: BLACKBERRY ) ; return true ; } elseif ( stripos ( self :: $ userAgentString , 'BB10' ) !== false ) { $ aresult = explode ( 'Version/10.' , self :: $ userAgentString ) ; if ( isset ( $ aresult [ 1 ] ) ) { $ aversion = explode ( ' ' , $ aresult [ 1 ] ) ; self :: $ browser -> setVersion ( '10.' . $ aversion [ 0 ] ) ; } self :: $ browser -> setName ( Browser :: BLACKBERRY ) ; return true ; } return false ; }
Determine if the user is using a BlackBerry.

@return bool
Determine if the user is using a BlackBerry .