protected function checkBrowserAndroidHTCDesire()
    {
        if( stripos($this->_agent,'Android') !== false )
        {
            if( stripos($this->_agent,'HTC_DesireHD') !== false )
            {
                $this->setVersion(self::VERSION_UNKNOWN);
                $this->setMobile(true);
                $this->setBrowser(self::BROWSER_HTC_DESIRE_HD);
                return true;
            }
            if( stripos($this->_agent,'HTC Desire Z') !== false )
            {
                $this->setVersion(self::VERSION_UNKNOWN);
                $this->setMobile(true);
                $this->setBrowser(self::BROWSER_HTC_DESIRE_Z);
                return true;
            }
            if( stripos($this->_agent,'HTC_DesireS') !== false )
            {
                $this->setVersion(self::VERSION_UNKNOWN);
                $this->setMobile(true);
                $this->setBrowser(self::BROWSER_HTC_DESIRE_S);
                return true;
            }
            if( stripos($this->_agent,'HTC_Desire')   !== false ||
                stripos($this->_agent,'HTC Desire')   !== false ||
            	stripos($this->_agent,'Desire_A8181') !== false )
            {
                $this->setVersion(self::VERSION_UNKNOWN);
                $this->setMobile(true);
                $this->setBrowser(self::BROWSER_HTC_DESIRE);
                return true;
            }
        }
        return false;
    }
protected function checkBrowserAndroidHTCDesire()
    {
        if( stripos($this->_agent,'Android') !== false )
        {
            if( stripos($this->_agent,'HTC_DesireHD') !== false )
            {
                $this->setVersion(self::VERSION_UNKNOWN);
                $this->setMobile(true);
                $this->setBrowser(self::BROWSER_HTC_DESIRE_HD);
                return true;
            }
            if( stripos($this->_agent,'HTC Desire Z') !== false )
            {
                $this->setVersion(self::VERSION_UNKNOWN);
                $this->setMobile(true);
                $this->setBrowser(self::BROWSER_HTC_DESIRE_Z);
                return true;
            }
            if( stripos($this->_agent,'HTC_DesireS') !== false )
            {
                $this->setVersion(self::VERSION_UNKNOWN);
                $this->setMobile(true);
                $this->setBrowser(self::BROWSER_HTC_DESIRE_S);
                return true;
            }
            if( stripos($this->_agent,'HTC_Desire')   !== false ||
                stripos($this->_agent,'HTC Desire')   !== false ||
            	stripos($this->_agent,'Desire_A8181') !== false )
            {
                $this->setVersion(self::VERSION_UNKNOWN);
                $this->setMobile(true);
                $this->setBrowser(self::BROWSER_HTC_DESIRE);
                return true;
            }
        }
        return false;
    }
protected function checkBrowserAndroidHTCDesire ( ) { if ( stripos ( $ this -> _agent , 'Android' ) !== false ) { if ( stripos ( $ this -> _agent , 'HTC_DesireHD' ) !== false ) { $ this -> setVersion ( self :: VERSION_UNKNOWN ) ; $ this -> setMobile ( true ) ; $ this -> setBrowser ( self :: BROWSER_HTC_DESIRE_HD ) ; return true ; } if ( stripos ( $ this -> _agent , 'HTC Desire Z' ) !== false ) { $ this -> setVersion ( self :: VERSION_UNKNOWN ) ; $ this -> setMobile ( true ) ; $ this -> setBrowser ( self :: BROWSER_HTC_DESIRE_Z ) ; return true ; } if ( stripos ( $ this -> _agent , 'HTC_DesireS' ) !== false ) { $ this -> setVersion ( self :: VERSION_UNKNOWN ) ; $ this -> setMobile ( true ) ; $ this -> setBrowser ( self :: BROWSER_HTC_DESIRE_S ) ; return true ; } if ( stripos ( $ this -> _agent , 'HTC_Desire' ) !== false || stripos ( $ this -> _agent , 'HTC Desire' ) !== false || stripos ( $ this -> _agent , 'Desire_A8181' ) !== false ) { $ this -> setVersion ( self :: VERSION_UNKNOWN ) ; $ this -> setMobile ( true ) ; $ this -> setBrowser ( self :: BROWSER_HTC_DESIRE ) ; return true ; } } return false ; }
Determine if the browser is Android and HTC Desire or not, add by BugBuster
@return boolean True if the browser is HTC Desire otherwise false
Determine if the browser is Android and HTC Desire or not add by BugBuster