Horde_ActiveSync_Device::_isIos PHP Method

_isIos() protected method

Return if this client is an iOS device. Different versions require different checks.
protected _isIos ( ) : boolean
return boolean [description]
    protected function _isIos()
    {
        // Compare in order of likelyhood / most recent to least recent versions.
        if (strpos($this->{self::OS}, 'iOS') === 0 || strpos($this->userAgent, 'iOS') === 0 || in_array(Horde_String::lower($this->clientType), array(self::TYPE_IPAD, self::TYPE_IPOD, self::TYPE_IPHONE)) || strpos($this->userAgent, 'Apple-') === 0) {
            return true;
        }
        return false;
    }