Horde_ActiveSync_Wbxml_Encoder::_getMapping PHP Method

_getMapping() private method

Obtain the wbxml mapping for the given tag
private _getMapping ( string $tag ) : array
$tag string
return array
    private function _getMapping($tag)
    {
        $mapping = array();
        $split = $this->_splitTag($tag);
        if (isset($split['ns'])) {
            $cp = $this->_dtd['namespaces'][$split['ns']];
        } else {
            $cp = 0;
        }
        $code = $this->_dtd['codes'][$cp][$split['tag']];
        $mapping['cp'] = $cp;
        $mapping['code'] = $code;
        return $mapping;
    }