Horde_ActiveSync_Device::_isNine PHP Method

_isNine() protected method

Helper method to sniff out the 9Folders client, "Nine".
See also: https://ninefolders.plan.io/track/7048/46b213 for the discussion on how to sniff out the Nine client. Not the best solution, but it's the one they decided to use.
protected _isNine ( ) : boolean
return boolean True if client is thought to be "Nine".
    protected function _isNine()
    {
        if (!ctype_xdigit($this->id)) {
            return false;
        }
        return stripos(pack('H*', $this->id), 'nine') === 0;
    }